Module: wine Branch: master Commit: b706a62aff4356fc35c00c3c6ff601323c8bdc4d URL: http://source.winehq.org/git/wine.git/?a=commit;h=b706a62aff4356fc35c00c3c6f...
Author: Stefan Dösinger stefan@codeweavers.com Date: Fri Jan 25 18:02:29 2008 +0100
wined3d: Beware of texture_rectangle NP2 support in Reset.
---
dlls/wined3d/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 742734c..4426d94 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -6766,7 +6766,7 @@ static void updateSurfaceDesc(IWineD3DSurfaceImpl *surface, WINED3DPRESENT_PARAM } surface->currentDesc.Width = pPresentationParameters->BackBufferWidth; surface->currentDesc.Height = pPresentationParameters->BackBufferHeight; - if (GL_SUPPORT(ARB_TEXTURE_NON_POWER_OF_TWO)) { + if (GL_SUPPORT(ARB_TEXTURE_NON_POWER_OF_TWO) || GL_SUPPORT(ARB_TEXTURE_RECTANGLE)) { surface->pow2Width = pPresentationParameters->BackBufferWidth; surface->pow2Height = pPresentationParameters->BackBufferHeight; } else {