forked from Mirrors/wine-wine
wined3d: Update the gl rectangle when adjusting surface sizes.
parent
1424e7fd09
commit
08391b82c1
|
@ -6795,6 +6795,11 @@ static void updateSurfaceDesc(IWineD3DSurfaceImpl *surface, WINED3DPRESENT_PARAM
|
|||
while (surface->pow2Width < pPresentationParameters->BackBufferWidth) surface->pow2Width <<= 1;
|
||||
while (surface->pow2Height < pPresentationParameters->BackBufferHeight) surface->pow2Height <<= 1;
|
||||
}
|
||||
surface->glRect.left = 0;
|
||||
surface->glRect.top = 0;
|
||||
surface->glRect.right = surface->pow2Width;
|
||||
surface->glRect.bottom = surface->pow2Height;
|
||||
|
||||
if(surface->glDescription.textureName) {
|
||||
ActivateContext(This, This->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD);
|
||||
ENTER_GL();
|
||||
|
|
Loading…
Reference in New Issue