Skip to content

Commit 9cfd0ef

Browse files
committed
removed bpp printout
1 parent a564583 commit 9cfd0ef

File tree

1 file changed

+8
-2
lines changed
  • java/libraries/lwjgl/src/processing/lwjgl

1 file changed

+8
-2
lines changed

java/libraries/lwjgl/src/processing/lwjgl/PGL.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,6 @@ protected void initSurface(int antialias) {
514514
DisplayMode[] modes = Display.getAvailableDisplayModes();
515515
int bpp = 0;
516516
for (int i = 0; i < modes.length; i++) {
517-
System.out.println(modes[i].getBitsPerPixel());
518517
bpp = PApplet.max(modes[i].getBitsPerPixel(), bpp);
519518
}
520519
PixelFormat format = new PixelFormat(bpp, request_alpha_bits,
@@ -527,8 +526,15 @@ protected void initSurface(int antialias) {
527526
float b = ((argb) & 0xff) / 255.0f;
528527
Display.setInitialBackground(r, g, b);
529528
Display.setParent(canvas);
529+
Display.setVSyncEnabled(true);
530530
Display.create(format);
531-
Display.setVSyncEnabled(true);
531+
532+
// Might be useful later to specify the context attributes.
533+
// http://lwjgl.org/javadoc/org/lwjgl/opengl/ContextAttribs.html
534+
// ContextAttribs contextAtrributes = new ContextAttribs(4, 0);
535+
// contextAtrributes.withForwardCompatible(true);
536+
// contextAtrributes.withProfileCore(true);
537+
// Display.create(pixelFormat, contextAtrributes);
532538
} catch (LWJGLException e) {
533539
e.printStackTrace();
534540
}

0 commit comments

Comments
 (0)