Switch to GL3bc, change mipmap code to glGenerateMipmap

This commit is contained in:
Pazaz 2022-04-22 17:15:58 -04:00
parent 87f04ac0e0
commit 240862d626
2 changed files with 25 additions and 5 deletions

View file

@ -654,7 +654,7 @@ public final class GlRenderer {
if (!canvas.isDisplayable()) {
return -1;
}
GLProfile profile = GLProfile.get(GLProfile.GL2);
GLProfile profile = GLProfile.get(GLProfile.GL3bc);
@Pc(8) GLCapabilities capabilities = new GLCapabilities(profile);
if (numSamples > 0) {
capabilities.setSampleBuffers(true);