mirror of
https://github.com/reactos/wine.git
synced 2025-02-15 18:37:49 +00:00
wined3d: Don't use a start index higher than MAX_COMBINED_SAMPLERS - 1 in device_map_vsamplers().
This commit is contained in:
parent
0936f4aa92
commit
8cf7aa2bdd
@ -3769,7 +3769,7 @@ static void device_map_vsamplers(IWineD3DDeviceImpl *This, BOOL ps) {
|
||||
const WINED3DSAMPLER_TEXTURE_TYPE *vshader_sampler_type =
|
||||
((IWineD3DVertexShaderImpl *)This->stateBlock->vertexShader)->baseShader.reg_maps.sampler_type;
|
||||
const WINED3DSAMPLER_TEXTURE_TYPE *pshader_sampler_type = NULL;
|
||||
int start = GL_LIMITS(combined_samplers) - 1;
|
||||
int start = min(MAX_COMBINED_SAMPLERS, GL_LIMITS(combined_samplers)) - 1;
|
||||
int i;
|
||||
|
||||
if (ps) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user