Philip Nilsson : wined3d: Enable filtering for D3DFMT_A4R4G4B4.
Alexandre Julliard
julliard at winehq.org
Wed Jul 16 13:32:59 CDT 2008
Module: wine
Branch: master
Commit: 9528b1c63e34c5310b5aefaa53d9814b10cc6550
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9528b1c63e34c5310b5aefaa53d9814b10cc6550
Author: Philip Nilsson <pnilsson at nullref.se>
Date: Sun Jul 13 21:41:45 2008 +0200
wined3d: Enable filtering for D3DFMT_A4R4G4B4.
This patch enables texture filtering for textures using the A4R4G4B4
format, I can see no reason why it shouldn't be filtered (especially
considering X4R4G4B4 has it).
---
dlls/wined3d/utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 6093b32..40c154d 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -188,7 +188,7 @@ static const GlPixelFormatDescTemplate gl_formats_template[] = {
{WINED3DFMT_A1R5G5B5 ,GL_RGB5_A1 ,GL_RGB5_A1 , 0, GL_BGRA ,GL_UNSIGNED_SHORT_1_5_5_5_REV
,WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING | WINED3DFMT_FLAG_FILTERING },
{WINED3DFMT_A4R4G4B4 ,GL_RGBA4 ,GL_SRGB8_ALPHA8_EXT , 0, GL_BGRA ,GL_UNSIGNED_SHORT_4_4_4_4_REV
- ,WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING },
+ ,WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING | WINED3DFMT_FLAG_FILTERING },
{WINED3DFMT_R3G3B2 ,GL_R3_G3_B2 ,GL_R3_G3_B2 , 0, GL_RGB ,GL_UNSIGNED_BYTE_3_3_2
,WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING },
{WINED3DFMT_A8 ,GL_ALPHA8 ,GL_ALPHA8 , 0, GL_ALPHA ,GL_UNSIGNED_BYTE
More information about the wine-cvs
mailing list