aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/native/ogl/Canvas3D.c6
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;