diff options
author | Kevin Rushforth <[email protected]> | 2005-03-14 19:33:29 +0000 |
---|---|---|
committer | Kevin Rushforth <[email protected]> | 2005-03-14 19:33:29 +0000 |
commit | 913fa0720c04b86c18cca85b3a1d8c80ab55ca8b (patch) | |
tree | e3b9d932b3cb840cca5731d9624636216abdea97 /src/native | |
parent | 825ca8021d618c12bb088126008ab18b2aea297b (diff) |
Fix for Issue 111 (Java 3D doesn't recognize OpenGL 2.0)
Issue number: 111
Obtained from: kcr
Submitted by: kcr
Reviewed by: jada
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@158 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/native')
-rw-r--r-- | src/native/ogl/Canvas3D.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/native/ogl/Canvas3D.c b/src/native/ogl/Canvas3D.c index 4bed44a..3a45b92 100644 --- a/src/native/ogl/Canvas3D.c +++ b/src/native/ogl/Canvas3D.c @@ -484,7 +484,11 @@ getPropertiesFromCurrentContext( /* *********************************************************/ /* setup the graphics context properties */ - if (versionNumbers[1] >= 2) { /* check 1.2 core and above */ + + /* check 1.2 core and above */ + if ((versionNumbers[0] > 1) || + (versionNumbers[0] == 1 && versionNumbers[1] >= 2)) { + /* 1.2 core */ ctxInfo->rescale_normal_ext = JNI_TRUE; ctxInfo->rescale_normal_ext_enum = GL_RESCALE_NORMAL; |