aboutsummaryrefslogtreecommitdiffstats
path: root/src/native
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2007-03-09 18:51:09 +0000
committerChien Yang <[email protected]>2007-03-09 18:51:09 +0000
commita84d004aa9539731b5d5daa382c1ca20c5c2b2c2 (patch)
treebc75224ea91e00aa820da04b73cd467757b1ed7a /src/native
parentf311eb6cf726a33a95fb6c005e16312865826e70 (diff)
Update ogl native and set gl13 to true too.
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@793 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/native')
-rw-r--r--src/native/ogl/Canvas3D.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/native/ogl/Canvas3D.c b/src/native/ogl/Canvas3D.c
index 39d328c..0d50ff1 100644
--- a/src/native/ogl/Canvas3D.c
+++ b/src/native/ogl/Canvas3D.c
@@ -613,6 +613,9 @@ getPropertiesFromCurrentContext(
if (versionNumbers[1] == 2) {
fprintf(stderr,
"JAVA 3D: OpenGL 1.2 detected; will run with reduced functionality\n");
+ } else if (versionNumbers[1] == 4) {
+ ctxInfo->gl14 = JNI_TRUE;
+ ctxInfo->gl13 = JNI_TRUE;
} else {
// OpenGL 1.x (1.3 or greater)
ctxInfo->gl13 = JNI_TRUE;