Skip to content

Commit

Permalink
Fix regression of commit e5692f6: CGL/CGLExt Robustness ..
Browse files Browse the repository at this point in the history
  • Loading branch information
sgothel committed Oct 30, 2012
1 parent 60bf26c commit dda5e16
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -234,7 +234,7 @@ private static GLCapabilities PixelFormat2GLCapabilities(GLProfile glp, long pix
} else {
off = 0;
}
attrToken.position(1);
attrToken.position(off);
final int len = attrToken.remaining();
final IntBuffer ivalues = Buffers.newDirectIntBuffer(len);

Expand All @@ -251,6 +251,7 @@ private static GLCapabilities PixelFormat2GLCapabilities(GLProfile glp, long pix
} else {
CGL.CGLQueryPixelFormat(pixelFormat, attrToken, len, ivalues);
}

if(null == glp && MacOSXCGLContext.isLionOrLater) {
// pre-scan for OpenGL Profile
for (int i = 0; i < len; i++) {
Expand Down

0 comments on commit dda5e16

Please sign in to comment.