diff --git a/dlls/wined3d/basetexture.c b/dlls/wined3d/basetexture.c index f826f912c0a..e49ba21269b 100644 --- a/dlls/wined3d/basetexture.c +++ b/dlls/wined3d/basetexture.c @@ -380,7 +380,6 @@ static void apply_wrap(const struct wined3d_gl_info *gl_info, GLenum target, /* GL locking is done by the caller (state handler) */ void basetexture_apply_state_changes(IWineD3DBaseTexture *iface, - const DWORD textureStates[WINED3D_HIGHEST_TEXTURE_STATE + 1], const DWORD samplerStates[WINED3D_HIGHEST_SAMPLER_STATE + 1], const struct wined3d_gl_info *gl_info) { @@ -391,7 +390,7 @@ void basetexture_apply_state_changes(IWineD3DBaseTexture *iface, DWORD aniso; struct gl_texture *gl_tex; - TRACE("iface %p, textureStates %p, samplerStates %p\n", iface, textureStates, samplerStates); + TRACE("iface %p, samplerStates %p\n", iface, samplerStates); if(This->baseTexture.is_srgb) { gl_tex = &This->baseTexture.texture_srgb; diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 44c10815357..83ed0c684d3 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -3648,7 +3648,6 @@ static void sampler(DWORD state_id, IWineD3DStateBlockImpl *stateblock, struct w IWineD3DBaseTexture_BindTexture(texture, srgb); basetexture_apply_state_changes(texture, - state->texture_states[sampler], state->sampler_states[sampler], gl_info); if (gl_info->supported[EXT_TEXTURE_LOD_BIAS]) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 6f6f0ceed0d..33139633d3d 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1920,7 +1920,6 @@ typedef struct IWineD3DBaseTextureImpl } IWineD3DBaseTextureImpl; void basetexture_apply_state_changes(IWineD3DBaseTexture *iface, - const DWORD textureStates[WINED3D_HIGHEST_TEXTURE_STATE + 1], const DWORD samplerStates[WINED3D_HIGHEST_SAMPLER_STATE + 1], const struct wined3d_gl_info *gl_info) DECLSPEC_HIDDEN; HRESULT basetexture_bind(IWineD3DBaseTexture *iface, BOOL srgb, BOOL *set_surface_desc) DECLSPEC_HIDDEN;