Merge pull request #6534 from deathbeam/switch-to-core-gpu

Switch to core profile in GPU plugin
This commit is contained in:
Adam
2018-11-18 12:30:42 -05:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@@ -228,7 +228,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);
AWTGraphicsConfiguration config = AWTGraphicsConfiguration.create(canvas.getGraphicsConfiguration(), glCaps, glCaps);
@@ -890,7 +890,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);