wined3d: In case of GL_EXT_paletted_textures we use GL_COLOR_INDEX and don't need a GL_RED fixup.

This commit is contained in:
Roderick Colenbrander 2007-12-23 20:47:15 +01:00 committed by Alexandre Julliard
parent e735e199ad
commit 756cb66e78
1 changed files with 1 additions and 1 deletions

View File

@ -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;