install-platforms
Julius Michaelis 2018-01-13 12:29:24 +01:00
parent 4a3173da36
commit 0027666c4e
2 changed files with 5 additions and 1 deletions

View File

@ -357,6 +357,10 @@ CStdGLCtx *CStdGL::CreateContext(C4Window * pWindow, C4AbstractApp *pApp)
}
// creation selected the new context - switch back to previous context
RenderTarget = nullptr;
#ifdef WITH_QT_EDITOR
// FIXME This is a hackfix for #1813 / #1956. The proper way to fix them would probably be to select a drawing context before invoking C4Player::FinalInit
if (!app->isEditor)
#endif
pCurrCtx = nullptr;
// done
return pCtx;

View File

@ -511,7 +511,7 @@ DWORD C4Surface::GetPixDw(int iX, int iY, bool fApplyModulation)
{
// get+lock affected texture
if (!texture) return 0;
texture->Lock();
assert(texture->Lock());
pBuf=(BYTE *) texture->texLock.pBits.get();
iPitch=texture->texLock.Pitch;
}