[PATCH] In case of GL_EXT_paletted_textures we use GL_COLOR_INDEX and don't need a GL_RED fixup.

Roderick Colenbrander thunderbird2k at gmx.net
Sun Dec 23 13:47:15 CST 2007


---
 dlls/wined3d/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 30d6507..4d286e1 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1402,7 +1402,7 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck, BOOL use_
                     *convert = CONVERT_PALETTED;
                 }
             }
-            else if(GL_SUPPORT(ARB_FRAGMENT_PROGRAM)) {
+            else if(!GL_SUPPORT(EXT_PALETTED_TEXTURE) && GL_SUPPORT(ARB_FRAGMENT_PROGRAM)) {
                 *format = GL_RED;
                 *internal = GL_RGBA;
                 *type = GL_UNSIGNED_BYTE;
-- 
1.5.1.3


--========GMX147681198441574485061--



More information about the wine-patches mailing list