Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Get GL ES 2.0 working on emulator #573

Closed
ljbade opened this issue Nov 9, 2014 · 3 comments
Closed

Get GL ES 2.0 working on emulator #573

ljbade opened this issue Nov 9, 2014 · 3 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@ljbade
Copy link
Contributor

ljbade commented Nov 9, 2014

Me and @springmeyer can't get the app to run on the emulator due to it not providing any GL ES 2.0 configs from eglChooseConfig when using EGL_CONFORMANT = EGL_OPENGL_ES2_BIT.

I submitted it to Google to see what they say:
https://code.google.com/p/android/issues/detail?id=78977

@ljbade ljbade added the Android Mapbox Maps SDK for Android label Nov 9, 2014
@ljbade
Copy link
Contributor Author

ljbade commented Nov 9, 2014

Now I get this on Android 5.0 emulator:
E/../../android/cpp/NativeMapView.cpp:128﹕ eglChooseConfig(NULL) returned error 12288

12288 is 0x3000, which is EGL_SUCCESS!

That means eglChooseConfig is returning EGL_FALSE to say it failed, but not setting the eglGetError() code to something.

Bad...

@ljbade
Copy link
Contributor Author

ljbade commented Nov 9, 2014

OK I got it working in emulator after trying many combos.

We can't use EGL_CONFORMANT, EGL_OPENGL_ES2_BIT in eglChooseConfig, despite the fact that later on eglGetConfigAttrib tells us EGL_CONFORMANT = EGL_OPENGL_ES_BIT | EGL_OPENGL_ES2_BIT for every config it returns!

Emulator also does not like EGL_COLOR_BUFFER_TYPE, EGL_RGB_BUFFER, setting that causes eglChooseConfig to fail.

@ljbade
Copy link
Contributor Author

ljbade commented Nov 9, 2014

OK done 4854527

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

1 participant