Skip to content
Permalink
Browse files

cmake: use LEGACY OpenGL on FreeBSD only 2fedaa6

Black screen reported on linux with `LEGACY` OpenGL type, set it back to
`GLVND` and only use `LEGACY` on FreeBSD.

Broken in 2fedaa6.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
  • Loading branch information
rkitover committed Apr 27, 2019
1 parent 240257a commit a4eae8025e783366e23ed66005f5dca1f0e5438c
Showing with 5 additions and 1 deletion.
  1. +5 −1 CMakeLists.txt
@@ -198,7 +198,11 @@ endif()
# Look for some dependencies using CMake scripts
find_package(ZLIB REQUIRED)

set(OpenGL_GL_PREFERENCE LEGACY)
set(OpenGL_GL_PREFERENCE GLVND)

if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
set(OpenGL_GL_PREFERENCE LEGACY)
endif()

find_package(OpenGL REQUIRED)

0 comments on commit a4eae80

Please sign in to comment.
You can’t perform that action at this time.