Skip to content

Commit

Permalink
egl.c: don't implicitly get an EGLDisplay
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  • Loading branch information
tycho committed Nov 2, 2022
1 parent 06464e5 commit f0a1597
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions glad/generator/c/templates/egl.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,6 @@ static int glad_egl_find_core_{{ api|lower }}(EGLDisplay display) {
if (display == NULL) {
display = EGL_NO_DISPLAY; /* this is usually NULL, better safe than sorry */
}
if (display == EGL_NO_DISPLAY) {
display = eglGetCurrentDisplay();
}
#ifdef EGL_VERSION_1_4
if (display == EGL_NO_DISPLAY) {
display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
}
#endif
#ifndef EGL_VERSION_1_5
if (display == EGL_NO_DISPLAY) {
return 0;
}
#endif

version = eglQueryString(display, EGL_VERSION);
(void) eglGetError();
Expand Down

0 comments on commit f0a1597

Please sign in to comment.