From 59cb65b1531962b4e5eaa98292c9b82c88bf4b85 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Thu, 22 Oct 2015 00:20:57 +0200 Subject: [PATCH] wined3d: Add a format fixup for INTZ on core profile. Signed-off-by: Matteo Bruni Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/utils.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index 9c4fdd96e11..e7f9cbdad71 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -2533,6 +2533,13 @@ static void apply_format_fixups(struct wined3d_adapter *adapter, struct wined3d_ gl_info->formats[idx].height_scale.denominator = 2; gl_info->formats[idx].color_fixup = create_complex_fixup_desc(COMPLEX_FIXUP_NV12); + if (!gl_info->supported[WINED3D_GL_LEGACY_CONTEXT]) + { + idx = getFmtIdx(WINED3DFMT_INTZ); + gl_info->formats[idx].color_fixup = create_color_fixup_desc( + 0, CHANNEL_SOURCE_X, 0, CHANNEL_SOURCE_X, 0, CHANNEL_SOURCE_X, 0, CHANNEL_SOURCE_X); + } + if (gl_info->supported[ARB_FRAGMENT_PROGRAM]) { idx = getFmtIdx(WINED3DFMT_P8_UINT);