Mesa (master): mesa: avoid returning a value in a void function

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Dec 28 12:13:50 UTC 2019


Module: Mesa
Branch: master
Commit: a6873a8df2393777975ae3043a395d79e495b365
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6873a8df2393777975ae3043a395d79e495b365

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Fri Dec 27 21:50:24 2019 +0000

mesa: avoid returning a value in a void function

Fixes: 1d1722e91070d7c37687 ("mesa: add EXT_dsa NamedProgram functions")
Cc: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

---

 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");




More information about the mesa-commit mailing list