wined3d: Update sRGB GL texture state.

This commit is contained in:
Matteo Bruni 2011-11-23 01:31:40 +01:00 committed by Alexandre Julliard
parent 7f27eb6a45
commit 1ac60004dc
1 changed files with 1 additions and 0 deletions

View File

@ -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)