OSDN Git Service

correct the return value
authorAlan Hourihane <alanh@tungstengraphics.com>
Tue, 22 Apr 2008 19:29:00 +0000 (20:29 +0100)
committerAlan Hourihane <alanh@tungstengraphics.com>
Tue, 22 Apr 2008 19:31:58 +0000 (20:31 +0100)
src/mesa/shader/prog_statevars.c

index 4ae74c1..01ab051 100644 (file)
@@ -813,7 +813,7 @@ _mesa_load_state_parameters(GLcontext *ctx,
    GLuint i;
 
    if (!paramList)
-      return;
+      return retval;
 
    for (i = 0; i < paramList->NumParameters; i++) {
       if (paramList->Parameters[i].Type == PROGRAM_STATE_VAR) {