diff options
Diffstat (limited to 'src/native/ogl/Attributes.c')
-rw-r--r-- | src/native/ogl/Attributes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/native/ogl/Attributes.c b/src/native/ogl/Attributes.c index 4439524..2538bc4 100644 --- a/src/native/ogl/Attributes.c +++ b/src/native/ogl/Attributes.c @@ -485,7 +485,7 @@ void JNICALL Java_javax_media_j3d_NativePipeline_setLightEnables( #endif for (i=0; i<nlights; i++) { - if (enable_mask & (1L<<i)) { + if (enable_mask & ((long)(1<<i))) { glEnable(GL_LIGHT0 + i); } else { |