Switch to core profile in GPU plugin
This makes GPU plugin available to more people and workarounds bug in JOGL on Linux where it is not detecting compatible profile on some systems. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -227,7 +227,7 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
|
||||
|
||||
GLProfile.initSingleton();
|
||||
|
||||
GLProfile glProfile = GLProfile.get(GLProfile.GL4bc);
|
||||
GLProfile glProfile = GLProfile.get(GLProfile.GL4);
|
||||
|
||||
GLCapabilities glCaps = new GLCapabilities(glProfile);
|
||||
AbstractGraphicsConfiguration config = AWTGraphicsConfiguration.create(canvas.getGraphicsConfiguration(),
|
||||
@@ -872,7 +872,7 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
|
||||
|
||||
// Texture on UI
|
||||
gl.glBindVertexArray(vaoUiHandle);
|
||||
gl.glDrawArrays(gl.GL_QUADS, 0, 4);
|
||||
gl.glDrawArrays(gl.GL_TRIANGLE_FAN, 0, 4);
|
||||
|
||||
// Reset
|
||||
gl.glBindTexture(gl.GL_TEXTURE_2D, 0);
|
||||
|
||||
Reference in New Issue
Block a user