Cast void * pointers to const void * where possible

bzip2
Graham 5 years ago
parent 7386fdc862
commit a448581733
  1. 8
      gl-natives/src/main/c/jaggl.c

@ -865,7 +865,7 @@ JNIEXPORT void JNICALL Java_jaggl_opengl_glBufferDataARB0(JNIEnv *env, jobject o
if (jaggl_glBufferDataARB) { if (jaggl_glBufferDataARB) {
JAGGL_GET_BUFFER(env, data, data_off); JAGGL_GET_BUFFER(env, data, data_off);
jaggl_glBufferDataARB((GLenum) target, (GLsizeiptrARB) size, JAGGL_PTR(data), (GLenum) usage); jaggl_glBufferDataARB((GLenum) target, (GLsizeiptrARB) size, (const void *) JAGGL_PTR(data), (GLenum) usage);
} }
JAGGL_UNLOCK(env); JAGGL_UNLOCK(env);
@ -876,7 +876,7 @@ JNIEXPORT void JNICALL Java_jaggl_opengl_glBufferDataARB1(JNIEnv *env, jobject o
if (jaggl_glBufferDataARB) { if (jaggl_glBufferDataARB) {
JAGGL_GET_ARRAY(env, data, data_off); JAGGL_GET_ARRAY(env, data, data_off);
jaggl_glBufferDataARB((GLenum) target, (GLsizeiptrARB) size, JAGGL_PTR(data), (GLenum) usage); jaggl_glBufferDataARB((GLenum) target, (GLsizeiptrARB) size, (const void *) JAGGL_PTR(data), (GLenum) usage);
JAGGL_RELEASE_ARRAY(env, data); JAGGL_RELEASE_ARRAY(env, data);
} }
@ -888,7 +888,7 @@ JNIEXPORT void JNICALL Java_jaggl_opengl_glBufferSubDataARB0(JNIEnv *env, jobjec
if (jaggl_glBufferSubDataARB) { if (jaggl_glBufferSubDataARB) {
JAGGL_GET_BUFFER(env, data, data_off); JAGGL_GET_BUFFER(env, data, data_off);
jaggl_glBufferSubDataARB((GLenum) target, (GLintptrARB) offset, (GLsizeiptrARB) size, JAGGL_PTR(data)); jaggl_glBufferSubDataARB((GLenum) target, (GLintptrARB) offset, (GLsizeiptrARB) size, (const void *) JAGGL_PTR(data));
} }
JAGGL_UNLOCK(env); JAGGL_UNLOCK(env);
@ -899,7 +899,7 @@ JNIEXPORT void JNICALL Java_jaggl_opengl_glBufferSubDataARB1(JNIEnv *env, jobjec
if (jaggl_glBufferSubDataARB) { if (jaggl_glBufferSubDataARB) {
JAGGL_GET_ARRAY(env, data, data_off); JAGGL_GET_ARRAY(env, data, data_off);
jaggl_glBufferSubDataARB((GLenum) target, (GLintptrARB) offset, (GLsizeiptrARB) size, JAGGL_PTR(data)); jaggl_glBufferSubDataARB((GLenum) target, (GLintptrARB) offset, (GLsizeiptrARB) size, (const void *) JAGGL_PTR(data));
JAGGL_RELEASE_ARRAY(env, data); JAGGL_RELEASE_ARRAY(env, data);
} }

Loading…
Cancel
Save