aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/native/GLContext.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/native/GLContext.c')
-rw-r--r--src/jogl/native/GLContext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/native/GLContext.c b/src/jogl/native/GLContext.c
index f10d0e421..9be9f82af 100644
--- a/src/jogl/native/GLContext.c
+++ b/src/jogl/native/GLContext.c
@@ -19,7 +19,7 @@ Java_jogamp_opengl_GLContextImpl_glGetStringInt(JNIEnv *env, jclass _unused, jin
assert(ptr_glGetString != NULL);
_res = (* ptr_glGetString) ((unsigned int) name);
if (NULL == _res) return NULL;
- return (*env)->NewStringUTF(env, _res);
+ return (*env)->NewStringUTF(env, (const char *)_res);
}
/*