Fix building the OpenGL3 with the Makefile

Why can't any buildsystems just be good

Like, seriously? Why does pkg-config not have an OpenGL package,
so I don't have to deal with this stupid -lopengl32/-lGL stuff?

...Why isn't there a shim libGL that just maps straight to
opengl32.lib?

Arg
This commit is contained in:
Clownacy 2019-08-11 00:04:11 +01:00
parent c4599bc146
commit 3a10bf57cb

View file

@ -217,6 +217,12 @@ ifeq ($(RENDERER), OpenGL3)
else
LIBS += `pkg-config glew --libs`
endif
ifeq ($(WINDOWS), 1)
LIBS += -lopengl32
else
LIBS += -lGL
endif
else ifeq ($(RENDERER), Texture)
SOURCES += src/Backends/Rendering/SDLTexture
else ifeq ($(RENDERER), Surface)