aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2005-12-13 22:44:51 +0000
committerChien Yang <[email protected]>2005-12-13 22:44:51 +0000
commitca9425e6e24cb02235257e85662774e56662cd37 (patch)
treec378fca2ddb8c9522d110d4c43bc2ecefe788535 /src
parentc93daf2928d6d4faa6ce6b6a0d48a6492be63b76 (diff)
Change style in checking native boolean variable.
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@479 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src')
-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],