mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-28 05:45:03 -06:00
Fix game not launching
This commit is contained in:
parent
50f3c31f8e
commit
7b801ca0dd
1 changed files with 1 additions and 7 deletions
|
|
@ -40,15 +40,9 @@ bool gl_init() {
|
|||
render_window_t* gl_init_context(render_window_t *share) {
|
||||
render_window_t* bundle = malloc(sizeof(render_window_t));
|
||||
memset(bundle, 0, sizeof(render_window_t));
|
||||
EGLint egl_attributes[] = { EGL_BLUE_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_RED_SIZE, 8, EGL_ALPHA_SIZE, 8, EGL_DEPTH_SIZE, 24, EGL_SURFACE_TYPE, EGL_WINDOW_BIT|EGL_PBUFFER_BIT, EGL_RENDERABLE_TYPE, EGL_OPENGL_BIT, EGL_NONE };
|
||||
EGLint egl_attributes[] = { EGL_BLUE_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_RED_SIZE, 8, EGL_ALPHA_SIZE, 8, EGL_DEPTH_SIZE, 24, EGL_SURFACE_TYPE, EGL_WINDOW_BIT|EGL_PBUFFER_BIT, EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_NONE };
|
||||
EGLint num_configs = 0;
|
||||
|
||||
if(strncmp(getenv("POJAV_RENDERER"), "opengles3_desktopgl", 19) == 0) {
|
||||
egl_attributes[13] = EGL_OPENGL_BIT;
|
||||
} else {
|
||||
egl_attributes[13] = EGL_OPENGL_ES2_BIT;
|
||||
}
|
||||
|
||||
if (eglChooseConfig_p(g_EglDisplay, egl_attributes, NULL, 0, &num_configs) != EGL_TRUE) {
|
||||
__android_log_print(ANDROID_LOG_ERROR, g_LogTag, "eglChooseConfig_p() failed: %04x",
|
||||
eglGetError_p());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue