Do not link GL when ANGLE is used

This commit is contained in:
Milan Nikolic 2023-06-21 11:19:43 +02:00
parent 048c1b598c
commit a6644da243
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
5 changed files with 18 additions and 8 deletions

View file

@ -23,9 +23,11 @@ package rl
#include "external/glfw/src/egl_context.c"
#include "external/glfw/src/osmesa_context.c"
#cgo windows LDFLAGS: -lopengl32 -lgdi32 -lwinmm -lole32
#cgo windows LDFLAGS: -lgdi32 -lwinmm -lole32
#cgo windows CFLAGS: -D_GLFW_WIN32 -Iexternal -Iexternal/glfw/include -Iexternal/glfw/deps/mingw -DPLATFORM_DESKTOP
#cgo windows,!angle LDFLAGS: -lopengl32
#cgo windows,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
#cgo windows,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
#cgo windows,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43