Skip to content

Commit d7cc6f1

Browse files
committed
Skip GLdispatch if using OpenGLES
1 parent b305812 commit d7cc6f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ if (UNIX AND NOT APPLE)
212212
if (NOT USE_OPENGLES)
213213
find_package(OpenGL REQUIRED)
214214
else()
215+
set(OpenGL_GL_PREFERENCE GLVND)
216+
find_package(OpenGL REQUIRED COMPONENTS GLES2)
215217
set(ADDITIONAL_LIBRARY_DEPENDENCIES ${ADDITIONAL_LIBRARY_DEPENDENCIES} GLESv2)
216218
endif()
217219
endif()

0 commit comments

Comments
 (0)