[PATCH 1/5] wined3d: Check ARB_TEXTURE_COMPRESSION_RGTC for applying the correct fixup.
Matteo Bruni
mbruni at codeweavers.com
Wed Oct 29 12:01:50 CDT 2014
There is code in directx.c to enable ARB_TEXTURE_COMPRESSION_RGTC when
EXT_TEXTURE_COMPRESSION_RGTC is supported but not the other way around.
On OS X only the ARB_ version is advertised by GL.
The two extensions are virtually identical. Another option would be to
simply use a single entry in the supported extensions table.
---
dlls/wined3d/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index e969fa7..b9d60de 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -2018,7 +2018,7 @@ static void apply_format_fixups(struct wined3d_adapter *adapter, struct wined3d_
*/
}
- if (gl_info->supported[EXT_TEXTURE_COMPRESSION_RGTC])
+ if (gl_info->supported[ARB_TEXTURE_COMPRESSION_RGTC])
{
idx = getFmtIdx(WINED3DFMT_ATI2N);
gl_info->formats[idx].color_fixup = create_color_fixup_desc(
--
2.0.4
More information about the wine-patches
mailing list