cmake: only gl1 renderer needs to be specifically linked

This commit is contained in:
John Törnblom 2024-11-17 01:34:07 +01:00
parent 38843f0f33
commit 9700eb6baf

View file

@ -194,7 +194,7 @@ else()
list(APPEND yquake2SDLLinkerFlags ${SDL2_LIBRARY})
endif()
if(GL1_RENDERER OR GL3_RENDERER OR GLES1_RENDERER OR GLES2_RENDERER)
if(GL1_RENDERER)
# We need an OpenGL implementation.
set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED)