wined3d: Update the gl rectangle when adjusting surface sizes.

oldstable
Stefan Dösinger 2008-01-27 21:26:07 +01:00 committed by Alexandre Julliard
parent 1424e7fd09
commit 08391b82c1
1 changed files with 5 additions and 0 deletions

View File

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