Set always_array=true for glGenProgramsNV (Dave Reveman)
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 14 Mar 2006 15:41:53 +0000 (15:41 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 14 Mar 2006 15:41:53 +0000 (15:41 +0000)
src/glx/x11/indirect.c
src/mesa/glapi/gl_API.xml

index 2a4db6578a78149ca2ca5f773efc73dcaae3e7cb..8242ee1d3dddb44d4c8f2326a026be0b6160ddb0 100644 (file)
@@ -6321,7 +6321,7 @@ __indirect_glGenProgramsNV(GLsizei n, GLuint * programs)
     if (__builtin_expect((n >= 0) && (dpy != NULL), 1)) {
         GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GenProgramsNV, cmdlen);
         (void) memcpy((void *)(pc + 0), (void *)(&n), 4);
-        (void) __glXReadReply(dpy, 4, programs, GL_FALSE);
+        (void) __glXReadReply(dpy, 4, programs, GL_TRUE);
         UnlockDisplay(dpy); SyncHandle();
     }
     return;
index 16f290e85c4dbb02012717c71c77cac87610260a..9fb99e381a4af2a36601a42284e568ebd8d17738 100644 (file)
     <function name="GenProgramsNV" offset="582">
         <param name="n" type="GLsizei" counter="true"/>
         <param name="programs" type="GLuint *" output="true" count="n"/>
-        <glx vendorpriv="1295"/>
-    </function>
+        <glx vendorpriv="1295" always_array="true"/>
+     </function>
 
     <!-- This isn't 100% correct.  Currently, the only valid value of pname
          is GL_PROGRAM_PARAMETER_NV, and the count for that pname is always