Module: wine Branch: master Commit: 1ac60004dc54bae4cc69a12bf046789f6e9cbbcd URL: http://source.winehq.org/git/wine.git/?a=commit;h=1ac60004dc54bae4cc69a12bf0...
Author: Matteo Bruni mbruni@codeweavers.com Date: Wed Nov 23 01:31:40 2011 +0100
wined3d: Update sRGB GL texture state.
---
dlls/wined3d/texture.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index 84aa572..739bfe5 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -401,6 +401,7 @@ void wined3d_texture_apply_state_changes(struct wined3d_texture *texture, glTexParameteri(target, GL_TEXTURE_SRGB_DECODE_EXT, sampler_states[WINED3DSAMP_SRGBTEXTURE] ? GL_DECODE_EXT : GL_SKIP_DECODE_EXT); checkGLcall("glTexParameteri(GL_TEXTURE_SRGB_DECODE_EXT)"); + gl_tex->states[WINED3DTEXSTA_SRGBTEXTURE] = sampler_states[WINED3DSAMP_SRGBTEXTURE]; }
if (!(texture->resource.format->flags & WINED3DFMT_FLAG_SHADOW)