cmd/ebitenmobile: update GLES version to 3.0

GLES 3.0 is required for GLSL ES 3.0

Updates #1431
This commit is contained in:
Hajime Hoshi 2023-04-19 22:46:12 +09:00
parent 95709d9182
commit dd393b6f21
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class EbitenSurfaceView extends GLSurfaceView implements RenderRequester {
} }
private void initialize() { private void initialize() {
setEGLContextClientVersion(2); setEGLContextClientVersion(3);
setEGLConfigChooser(8, 8, 8, 8, 0, 0); setEGLConfigChooser(8, 8, 8, 8, 0, 0);
setRenderer(new EbitenRenderer()); setRenderer(new EbitenRenderer());
Ebitenmobileview.setRenderRequester(this); Ebitenmobileview.setRenderRequester(this);

View File

@ -107,7 +107,7 @@
} }
if (isGL) { if (isGL) {
EAGLContext *context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; EAGLContext *context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3];
[self glkView].context = context; [self glkView].context = context;
[EAGLContext setCurrentContext:context]; [EAGLContext setCurrentContext:context];