Fix OpenGL3 driver to compile standalone

also test this configuration in CI
This commit is contained in:
sfan5
2023-04-06 12:07:53 +02:00
parent e850bd102a
commit ca5f005b74
8 changed files with 6 additions and 20 deletions

View File

@ -260,7 +260,7 @@ endif()
if(ENABLE_GLES2)
find_package(OpenGLES2 REQUIRED)
endif()
if(ENABLE_OPENGL)
if(ENABLE_OPENGL OR ENABLE_OPENGL3)
set(OpenGL_GL_PREFERENCE "LEGACY")
find_package(OpenGL REQUIRED)
endif()