From a6873a8df2393777975ae3043a395d79e495b365 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 27 Dec 2019 21:50:24 +0000 Subject: [PATCH] mesa: avoid returning a value in a void function Fixes: 1d1722e91070d7c37687 ("mesa: add EXT_dsa NamedProgram functions") Cc: Pierre-Eric Pelloux-Prayer Signed-off-by: Eric Engestrom Reviewed-by: Lionel Landwerlin --- src/mesa/main/arbprogram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/arbprogram.c b/src/mesa/main/arbprogram.c index ac7aa49213e..1c8cc13d061 100644 --- a/src/mesa/main/arbprogram.c +++ b/src/mesa/main/arbprogram.c @@ -1048,7 +1048,8 @@ _mesa_GetNamedProgramivEXT(GLuint program, GLenum target, GLenum pname, { struct gl_program* prog; if (pname == GL_PROGRAM_BINDING_ARB) { - return _mesa_GetProgramivARB(target, pname, params); + _mesa_GetProgramivARB(target, pname, params); + return; } prog = lookup_or_create_program(program, target, "glGetNamedProgramivEXT"); -- 2.30.2