mesa: avoid returning a value in a void function
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 27 Dec 2019 21:50:24 +0000 (21:50 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Sat, 28 Dec 2019 11:58:37 +0000 (11:58 +0000)
Fixes: 1d1722e91070d7c37687 ("mesa: add EXT_dsa NamedProgram functions")
Cc: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/main/arbprogram.c

index ac7aa49213ebdb994e3fba8e68a78f5c4231131e..1c8cc13d0610508b590bc9aea36518f8e5880779 100644 (file)
@@ -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");