diff options
author | Brandon Dowdy <berylline@users.noreply.github.com> | 2021-02-03 23:59:16 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-04 09:38:27 +0100 |
commit | 09776334576ed5bd149ca553cb85e967f687b161 (patch) | |
tree | 8f57158d119171dc803c0343571812f402022e22 | |
parent | 8e27418dd31a797880172b3a811160b64a40b68c (diff) |
examples/egl_common: make attribs const
Make (config, context)_attribs const just to be on the safe side.
-rw-r--r-- | examples/egl_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/egl_common.c b/examples/egl_common.c index 2528d9b4..7e6252ef 100644 --- a/examples/egl_common.c +++ b/examples/egl_common.c @@ -19,7 +19,7 @@ EGLContext egl_context; PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT; PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC eglCreatePlatformWindowSurfaceEXT; -EGLint config_attribs[] = { +const EGLint config_attribs[] = { EGL_SURFACE_TYPE, EGL_WINDOW_BIT, EGL_RED_SIZE, 1, EGL_GREEN_SIZE, 1, @@ -29,7 +29,7 @@ EGLint config_attribs[] = { EGL_NONE, }; -EGLint context_attribs[] = { +const EGLint context_attribs[] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE, }; |