Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tedfelix committed Jul 19, 2022
1 parent 7f6936e commit ec7e42e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions native-activity/app/src/main/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ static int engine_init_display(struct engine* engine) {
* ANativeWindow buffers to match, using EGL_NATIVE_VISUAL_ID. */
eglGetConfigAttrib(display, config, EGL_NATIVE_VISUAL_ID, &format);
surface = eglCreateWindowSurface(display, config, engine->app->window, nullptr);

/* A version of OpenGL has not been specified here. This will
* default to OpenGL 1.0. You will need to change this if you
* want to use the newer features of OpenGL like shaders. */
context = eglCreateContext(display, config, nullptr, nullptr);

if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) {
Expand Down

0 comments on commit ec7e42e

Please sign in to comment.