wined3d: Move the arbfp p8 fixup to the format table and get rid of the d3dfmt_get_conv override.

This commit is contained in:
Roderick Colenbrander 2010-04-05 20:05:17 +02:00 committed by Alexandre Julliard
parent a5a4be4fc5
commit 1f2976a302
2 changed files with 1 additions and 9 deletions

View File

@ -2166,14 +2166,6 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck, BOOL use_
*convert = CONVERT_PALETTED;
}
}
/* TODO: this check is evil and should die (it basically checks which blitter backend is used) */
else if (!gl_info->supported[EXT_PALETTED_TEXTURE] && device->blitter->color_fixup_supported(gl_info, This->resource.format_desc->color_fixup))
{
*format = GL_ALPHA;
*type = GL_UNSIGNED_BYTE;
*target_bpp = 1;
}
break;
case WINED3DFMT_B2G3R3_UNORM:

View File

@ -336,7 +336,7 @@ static const struct wined3d_format_texture_info format_texture_info[] =
ARB_TEXTURE_FLOAT},
/* Palettized formats */
{WINED3DFMT_P8_UINT, GL_RGBA, GL_RGBA, 0,
GL_RGBA, GL_UNSIGNED_BYTE,
GL_ALPHA, GL_UNSIGNED_BYTE,
0,
ARB_FRAGMENT_PROGRAM},
{WINED3DFMT_P8_UINT, GL_COLOR_INDEX8_EXT, GL_COLOR_INDEX8_EXT, 0,