From 1da8a032af0c4de4898fb197615ba943a5a741b6 Mon Sep 17 00:00:00 2001 From: Alexander Dorofeyev Date: Wed, 20 Aug 2008 21:50:51 +0300 Subject: [PATCH] wined3d: Disable TEXTURE_RECTANGLE in SetupForBlit. --- dlls/wined3d/context.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 739ddb232e7..17d071409b1 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -730,6 +730,10 @@ static inline void SetupForBlit(IWineD3DDeviceImpl *This, WineD3DContext *contex } glDisable(GL_TEXTURE_3D); checkGLcall("glDisable GL_TEXTURE_3D"); + if(GL_SUPPORT(ARB_TEXTURE_RECTANGLE)) { + glDisable(GL_TEXTURE_RECTANGLE_ARB); + checkGLcall("glDisable GL_TEXTURE_RECTANGLE_ARB"); + } glDisable(GL_TEXTURE_2D); checkGLcall("glDisable GL_TEXTURE_2D"); @@ -755,6 +759,10 @@ static inline void SetupForBlit(IWineD3DDeviceImpl *This, WineD3DContext *contex } glDisable(GL_TEXTURE_3D); checkGLcall("glDisable GL_TEXTURE_3D"); + if(GL_SUPPORT(ARB_TEXTURE_RECTANGLE)) { + glDisable(GL_TEXTURE_RECTANGLE_ARB); + checkGLcall("glDisable GL_TEXTURE_RECTANGLE_ARB"); + } glDisable(GL_TEXTURE_2D); checkGLcall("glDisable GL_TEXTURE_2D");