aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/native/ogl/Canvas3D.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/native/ogl/Canvas3D.c b/src/native/ogl/Canvas3D.c
index f18d817..f9c8d10 100644
--- a/src/native/ogl/Canvas3D.c
+++ b/src/native/ogl/Canvas3D.c
@@ -1322,7 +1322,7 @@ jboolean JNICALL Java_javax_media_j3d_Canvas3D_useCtx(
#if defined(UNIX)
result = glXMakeCurrent((Display *)display, (GLXDrawable)window, (GLXContext)ctx);
- if (result != GL_TRUE) {
+ if (!result) {
fprintf(stderr, "Java 3D ERROR : In Canvas3D.useCtx() glXMakeCurrent fails\n");
return JNI_FALSE;
}
@@ -1337,7 +1337,7 @@ jboolean JNICALL Java_javax_media_j3d_Canvas3D_useCtx(
/* fprintf(stderr, "useCtx : wglMakeCurrent : window %d, ctx %d, result = %d\n",
window, (int) ctx, result); */
- if (result != GL_TRUE) {
+ if (!result) {
err = GetLastError();
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM,
@@ -3323,7 +3323,7 @@ void JNICALL Java_javax_media_j3d_Canvas3D_createQueryContext(
}
result = glXMakeCurrent((Display *)display, (GLXDrawable)newWin, (GLXContext)ctx);
- if (result == GL_FALSE)
+ if (!result)
fprintf(stderr, "Java 3D ERROR : glXMakeCurrent fails\n");
glXGetFBConfigAttrib((Display *) display, fbConfigList[0],