Commit f36c377d authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: We only care is a sampler is sampled at all in device_map_vsamplers(),…

wined3d: We only care is a sampler is sampled at all in device_map_vsamplers(), not the specific type.
parent fb475c7c
...@@ -3861,9 +3861,8 @@ static void device_map_vsamplers(IWineD3DDeviceImpl *This, BOOL ps) { ...@@ -3861,9 +3861,8 @@ static void device_map_vsamplers(IWineD3DDeviceImpl *This, BOOL ps) {
if (ps) { if (ps) {
IWineD3DPixelShaderImpl *pshader = (IWineD3DPixelShaderImpl *)This->stateBlock->pixelShader; IWineD3DPixelShaderImpl *pshader = (IWineD3DPixelShaderImpl *)This->stateBlock->pixelShader;
/* Make sure the shader's reg_maps are up to date. This is only relevant for 1.x pixelshaders. */ /* Note that we only care if a sampler is sampled or not, not the sampler's specific type.
pixelshader_update_samplers(&pshader->baseShader.reg_maps, This->stateBlock->textures, * Otherwise we'd need to call shader_update_samplers() here for 1.x pixelshaders. */
pshader->baseShader.hex_version);
pshader_sampler_tokens = pshader->baseShader.reg_maps.samplers; pshader_sampler_tokens = pshader->baseShader.reg_maps.samplers;
} }
......
...@@ -395,7 +395,7 @@ static HRESULT WINAPI IWineD3DPixelShaderImpl_SetFunction(IWineD3DPixelShader *i ...@@ -395,7 +395,7 @@ static HRESULT WINAPI IWineD3DPixelShaderImpl_SetFunction(IWineD3DPixelShader *i
return WINED3D_OK; return WINED3D_OK;
} }
void pixelshader_update_samplers(struct shader_reg_maps *reg_maps, IWineD3DBaseTexture * const *textures, static void pixelshader_update_samplers(struct shader_reg_maps *reg_maps, IWineD3DBaseTexture * const *textures,
DWORD shader_version) DWORD shader_version)
{ {
DWORD *samplers = reg_maps->samplers; DWORD *samplers = reg_maps->samplers;
......
...@@ -2401,8 +2401,6 @@ extern const SHADER_OPCODE IWineD3DPixelShaderImpl_shader_ins[]; ...@@ -2401,8 +2401,6 @@ extern const SHADER_OPCODE IWineD3DPixelShaderImpl_shader_ins[];
extern const IWineD3DPixelShaderVtbl IWineD3DPixelShader_Vtbl; extern const IWineD3DPixelShaderVtbl IWineD3DPixelShader_Vtbl;
GLuint find_gl_pshader(IWineD3DPixelShaderImpl *shader, const struct ps_compile_args *args); GLuint find_gl_pshader(IWineD3DPixelShaderImpl *shader, const struct ps_compile_args *args);
void find_ps_compile_args(IWineD3DPixelShaderImpl *shader, IWineD3DStateBlockImpl *stateblock, struct ps_compile_args *args); void find_ps_compile_args(IWineD3DPixelShaderImpl *shader, IWineD3DStateBlockImpl *stateblock, struct ps_compile_args *args);
void pixelshader_update_samplers(struct shader_reg_maps *reg_maps, IWineD3DBaseTexture * const *textures,
DWORD shader_version);
/* sRGB correction constants */ /* sRGB correction constants */
static const float srgb_cmp = 0.0031308; static const float srgb_cmp = 0.0031308;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment