mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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() {
|
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);
|
||||||
|
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user