]> git.cworth.org Git - fips/commitdiff
Correct arguments for glClearNamedBufferSubDataEXT wrapper
authorCarl Worth <cworth@cworth.org>
Wed, 5 Feb 2014 22:38:37 +0000 (14:38 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 5 Feb 2014 22:38:37 +0000 (14:38 -0800)
Apparently, the original source I used for the argument order was
incorrect.

glwrap.c

index 42eaa80e2766bc8261f85402564cbf2343734f48..1708e6b81fcc737e2fa724121dfb406a4331d235 100644 (file)
--- a/glwrap.c
+++ b/glwrap.c
@@ -560,13 +560,14 @@ glClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format,
 
 void
 glClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat,
-                             GLenum format, GLenum type, GLsizeiptr offset,
-                             GLsizeiptr size, const void *data)
+                             GLsizeiptr offset, GLsizeiptr size,
+                             GLenum format, GLenum type,
+                             const void *data)
 {
        SAVE_THEN_SWITCH_METRICS_OP (METRICS_OP_CLEAR_BUFFER_DATA);
 
        GLWRAP_DEFER (glClearNamedBufferSubDataEXT, buffer,
-                     internalformat, format, type, offset, size, data);
+                     internalformat, offset, size, format, type, data);
 
        RESTORE_METRICS_OP ();
 }