We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07738e commit faeda26Copy full SHA for faeda26
native-activity/app/src/main/cpp/main.cpp
@@ -127,6 +127,10 @@ static int engine_init_display(struct engine* engine) {
127
eglGetConfigAttrib(display, config, EGL_NATIVE_VISUAL_ID, &format);
128
surface =
129
eglCreateWindowSurface(display, config, engine->app->window, nullptr);
130
+
131
+ /* A version of OpenGL has not been specified here. This will default to
132
+ * OpenGL 1.0. You will need to change this if you want to use the newer
133
+ * features of OpenGL like shaders. */
134
context = eglCreateContext(display, config, nullptr, nullptr);
135
136
if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) {
0 commit comments