internal/graphicsdriver/opengl/gl: remove 'egl' build tag

Probably nobody uses this.
This commit is contained in:
Hajime Hoshi 2022-11-13 22:50:01 +09:00
parent 5b96d93d13
commit 144d2374bf

View File

@ -6,19 +6,17 @@
package gl package gl
/* /*
#cgo linux freebsd openbsd CFLAGS: -DTAG_POSIX #cgo !nintendosdk pkg-config: gl
#cgo linux,!nintendosdk freebsd,!nintendosdk openbsd,!nintendosdk pkg-config: gl #cgo nintendosdk CFLAGS: -DTAG_NINTENDOSDK
#cgo egl nintendosdk CFLAGS: -DTAG_EGL #cgo nintendosdk LDFLAGS: -Wl,-unresolved-symbols=ignore-all
#cgo egl,!nintendosdk pkg-config: egl
#cgo nintendosdk LDFLAGS: -Wl,-unresolved-symbols=ignore-all
#if defined(TAG_EGL) #if defined(TAG_NINTENDOSDK)
#include <stdlib.h> #include <stdlib.h>
#include <EGL/egl.h> #include <EGL/egl.h>
static void* getProcAddress(const char* name) { static void* getProcAddress(const char* name) {
return eglGetProcAddress(name); return eglGetProcAddress(name);
} }
#elif defined(TAG_POSIX) #else
#include <stdlib.h> #include <stdlib.h>
#include <GL/glx.h> #include <GL/glx.h>
static void* getProcAddress(const char* name) { static void* getProcAddress(const char* name) {