forked from Mirrors/openclonk
Windows: Do not deselect GL context when losing focus (#1208).
Fixes engine intialization when tabbing out.issue1247
parent
d977d913ce
commit
1c994ad3c7
|
@ -690,13 +690,6 @@ bool CStdGL::CheckGLError(const char *szAtOp)
|
|||
|
||||
CStdGL *pGL=NULL;
|
||||
|
||||
#ifdef USE_WIN32_WINDOWS
|
||||
void CStdGL::TaskOut()
|
||||
{
|
||||
if (pCurrCtx) pCurrCtx->Deselect();
|
||||
}
|
||||
#endif
|
||||
|
||||
bool CStdGL::OnResolutionChanged(unsigned int iXRes, unsigned int iYRes)
|
||||
{
|
||||
// Re-create primary clipper to adapt to new size.
|
||||
|
|
|
@ -169,7 +169,6 @@ public:
|
|||
virtual CStdGLCtx *CreateContext(C4Window * pWindow, C4AbstractApp *pApp);
|
||||
#ifdef USE_WIN32_WINDOWS
|
||||
virtual CStdGLCtx *CreateContext(HWND hWindow, C4AbstractApp *pApp);
|
||||
void TaskOut();
|
||||
#endif
|
||||
// Blit
|
||||
void SetupMultiBlt(C4ShaderCall& call, const C4BltTransform* pTransform, GLuint baseTex, GLuint overlayTex, GLuint normalTex, DWORD dwOverlayModClr);
|
||||
|
|
|
@ -118,8 +118,6 @@ LRESULT APIENTRY FullScreenWinProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
|
|||
{
|
||||
if (pTexMgr)
|
||||
pTexMgr->IntLock();
|
||||
if (pGL)
|
||||
pGL->TaskOut();
|
||||
if (Application.FullScreenMode())
|
||||
{
|
||||
::ChangeDisplaySettings(NULL, 0);
|
||||
|
|
Loading…
Reference in New Issue