mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/graphicsdriver/opengl/gl: remove 'egl' build tag
Probably nobody uses this.
This commit is contained in:
parent
5b96d93d13
commit
144d2374bf
@ -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 egl,!nintendosdk pkg-config: egl
|
|
||||||
#cgo nintendosdk LDFLAGS: -Wl,-unresolved-symbols=ignore-all
|
#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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user