diff options
author | Chien Yang <jada@dev.java.net> | 2007-03-09 22:17:37 +0000 |
---|---|---|
committer | Chien Yang <jada@dev.java.net> | 2007-03-09 22:17:37 +0000 |
commit | 57eed97fba0f6c94ac4247f55f9600ff26082218 (patch) | |
tree | 113d51097a8dfc4d0fb2250dbe66334e8acd5a53 /src/native | |
parent | c1ad5aac9f0ad6e1bed67c7a588c9463be71edf0 (diff) |
Fixed a typo in native pipe.
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@795 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/native')
-rw-r--r-- | src/native/ogl/Canvas3D.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/native/ogl/Canvas3D.c b/src/native/ogl/Canvas3D.c index 0b412f4..37c8b9f 100644 --- a/src/native/ogl/Canvas3D.c +++ b/src/native/ogl/Canvas3D.c @@ -603,17 +603,16 @@ getPropertiesFromCurrentContext( return JNI_FALSE; } - if (versionNumbers[0] > 1) { + if (versionNumbers[0] == 1) { if (versionNumbers[1] == 2) { fprintf(stderr, "JAVA 3D: OpenGL 1.2 detected; will run with reduced functionality\n"); - } else { - if (versionNumbers[1] >= 3) { - ctxInfo->gl13 = JNI_TRUE; - } - if (versionNumbers[1] >= 4) { - ctxInfo->gl14 = JNI_TRUE; - } + } + if (versionNumbers[1] >= 3) { + ctxInfo->gl13 = JNI_TRUE; + } + if (versionNumbers[1] >= 4) { + ctxInfo->gl14 = JNI_TRUE; } } else /* major >= 2 */ { ctxInfo->gl20 = JNI_TRUE; |