protected ContextAttribs createContextAttribs() { if (settings.getBoolean("GraphicsDebug") || settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)) { ContextAttribs attr; if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)) { attr = new ContextAttribs(3, 2); attr = attr.withProfileCore(true).withForwardCompatible(true).withProfileCompatibility(false); } else { attr = new ContextAttribs(); } if (settings.getBoolean("GraphicsDebug")) { attr = attr.withDebug(true); } return attr; } else { return null; } } protected int determineMaxSamples(int requestedSamples) {
if (useGL30) { ContextAttribs context = new ContextAttribs(gles30ContextMajor, gles30ContextMinor).withForwardCompatible(false) .withProfileCore(true); try { Display.create(new PixelFormat(config.r + config.g + config.b, config.a, config.depth, config.stencil,
if (useGL30) { ContextAttribs context = new ContextAttribs(gles30ContextMajor, gles30ContextMinor).withForwardCompatible(false) .withProfileCore(true); try { Display.create(new PixelFormat(config.r + config.g + config.b, config.a, config.depth, config.stencil,
protected ContextAttribs createContextAttribs() { if (settings.getBoolean("GraphicsDebug") || settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)) { ContextAttribs attr; if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)) { attr = new ContextAttribs(3, 2); attr = attr.withProfileCore(true).withForwardCompatible(true).withProfileCompatibility(false); } else { attr = new ContextAttribs(); } if (settings.getBoolean("GraphicsDebug")) { attr = attr.withDebug(true); } return attr; } else { return null; } }
if (useGL30) { ContextAttribs context = new ContextAttribs(gles30ContextMajor, gles30ContextMinor).withForwardCompatible(false) .withProfileCore(true); try { Display.create(new PixelFormat(config.r + config.g + config.b, config.a, config.depth, config.stencil,