Skip to content

Instantly share code, notes, and snippets.

@michaelcontento
Created September 23, 2013 00:48
Show Gist options
  • Save michaelcontento/6665344 to your computer and use it in GitHub Desktop.
Save michaelcontento/6665344 to your computer and use it in GitHub Desktop.
--- cocos2dx/platform/android/nativeactivity.cpp
+++ cocos2dx/platform/android/nativeactivity.cpp
@@ -150,6 +150,7 @@ static cocos_dimensions engine_init_display(struct engine* engine) {
*/
const EGLint attribs[] = {
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
+ EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_BLUE_SIZE, 5,
EGL_GREEN_SIZE, 6,
EGL_RED_SIZE, 5,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment