Commit c191c2a0 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Fix off-by-one error in wined3d_gl_limits_get_texture_unit_range().

Spotted by Matteo Bruni. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 7b32c8ab
......@@ -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;
}
......
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