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:
Józef Kucia 2017-03-16 11:30:19 +01:00 committed by Alexandre Julliard
parent 7b32c8ab3e
commit c191c2a09d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}