Skip to content

Commit f0a1597

Browse files
committed
egl.c: don't implicitly get an EGLDisplay
Signed-off-by: Steven Noonan <[email protected]>
1 parent 06464e5 commit f0a1597

File tree

1 file changed

+0
-13
lines changed
  • glad/generator/c/templates

1 file changed

+0
-13
lines changed

glad/generator/c/templates/egl.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,6 @@ static int glad_egl_find_core_{{ api|lower }}(EGLDisplay display) {
5252
if (display == NULL) {
5353
display = EGL_NO_DISPLAY; /* this is usually NULL, better safe than sorry */
5454
}
55-
if (display == EGL_NO_DISPLAY) {
56-
display = eglGetCurrentDisplay();
57-
}
58-
#ifdef EGL_VERSION_1_4
59-
if (display == EGL_NO_DISPLAY) {
60-
display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
61-
}
62-
#endif
63-
#ifndef EGL_VERSION_1_5
64-
if (display == EGL_NO_DISPLAY) {
65-
return 0;
66-
}
67-
#endif
6855

6956
version = eglQueryString(display, EGL_VERSION);
7057
(void) eglGetError();

0 commit comments

Comments
 (0)