From ca9425e6e24cb02235257e85662774e56662cd37 Mon Sep 17 00:00:00 2001 From: Chien Yang Date: Tue, 13 Dec 2005 22:44:51 +0000 Subject: 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 --- src/native/ogl/Canvas3D.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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], -- cgit v1.2.3