Module: wine Branch: master Commit: 08391b82c1b8a162c8e9c24a771a6a2e8a8ec3f6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=08391b82c1b8a162c8e9c24a77...
Author: Stefan Dösinger stefan@codeweavers.com Date: Sun Jan 27 21:26:07 2008 +0100
wined3d: Update the gl rectangle when adjusting surface sizes.
---
dlls/wined3d/device.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index c159674..ff99201 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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();