wined3d: Fix off-by-one error in wined3d_gl_limits_get_texture_unit_range().
Spotted by Matteo Bruni. Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7b32c8ab3e
commit
c191c2a09d
|
@ -6002,7 +6002,7 @@ void wined3d_gl_limits_get_texture_unit_range(const struct wined3d_gl_limits *gl
|
|||
if (gl_limits->combined_samplers == gl_limits->graphics_samplers)
|
||||
*base = 0;
|
||||
else
|
||||
*base = gl_limits->graphics_samplers - 1;
|
||||
*base = gl_limits->graphics_samplers;
|
||||
*count = gl_limits->samplers[WINED3D_SHADER_TYPE_COMPUTE];
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue