mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
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:
parent
95709d9182
commit
dd393b6f21
@ -73,7 +73,7 @@ class EbitenSurfaceView extends GLSurfaceView implements RenderRequester {
|
||||
}
|
||||
|
||||
private void initialize() {
|
||||
setEGLContextClientVersion(2);
|
||||
setEGLContextClientVersion(3);
|
||||
setEGLConfigChooser(8, 8, 8, 8, 0, 0);
|
||||
setRenderer(new EbitenRenderer());
|
||||
Ebitenmobileview.setRenderRequester(this);
|
||||
|
@ -107,7 +107,7 @@
|
||||
}
|
||||
|
||||
if (isGL) {
|
||||
EAGLContext *context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
|
||||
EAGLContext *context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3];
|
||||
[self glkView].context = context;
|
||||
|
||||
[EAGLContext setCurrentContext:context];
|
||||
|
Loading…
Reference in New Issue
Block a user