Windows: Do not deselect GL context when losing focus (#1208).

Fixes engine intialization when tabbing out.
issue1247
Sven Eberhardt 2015-01-11 16:56:33 +01:00
parent d977d913ce
commit 1c994ad3c7
3 changed files with 0 additions and 10 deletions

View File

@ -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.

View File

@ -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);

View File

@ -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);