forked from Mirrors/openclonk
parent
4a3173da36
commit
0027666c4e
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue