[PATCH 5/6] Move the arbfp p8 fixup to the format table and get rid of the d3dfmt_get_conv override.
Roderick Colenbrander
thunderbird2k at gmail.com
Mon Apr 5 13:05:17 CDT 2010
---
dlls/wined3d/surface.c | 8 --------
dlls/wined3d/utils.c | 2 +-
2 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index a863372..6ced082 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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:
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 9a37a35..611922a 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -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,
--
1.6.3.3
More information about the wine-patches
mailing list