Józef Kucia : wined3d: Fix off-by-one error in wined3d_gl_limits_get_texture_unit_range().
Module: wine Branch: master Commit: c191c2a09d810c61df2f936f890f5eab90744437 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c191c2a09d810c61df2f936f89... Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Thu Mar 16 11:30:19 2017 +0100 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(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index dd78583..e78763f 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -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; }
participants (1)
-
Alexandre Julliard