Skip to content

Commit faeda26

Browse files
tedfelixDanAlbert
authored andcommitted
Add comment explaining EGL version defaults.
1 parent c07738e commit faeda26

File tree

1 file changed

+4
-0
lines changed
  • native-activity/app/src/main/cpp

1 file changed

+4
-0
lines changed

native-activity/app/src/main/cpp/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ static int engine_init_display(struct engine* engine) {
127127
eglGetConfigAttrib(display, config, EGL_NATIVE_VISUAL_ID, &format);
128128
surface =
129129
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. */
130134
context = eglCreateContext(display, config, nullptr, nullptr);
131135

132136
if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) {

0 commit comments

Comments
 (0)