From 756cb66e78bd402b385d2babca495609ac318960 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Sun, 23 Dec 2007 20:47:15 +0100 Subject: [PATCH] wined3d: In case of GL_EXT_paletted_textures we use GL_COLOR_INDEX and don't need a GL_RED fixup. --- dlls/wined3d/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index f9df55e713a..df89db90fb8 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;