3D View: use full opacity by default
[blender.git] / CMakeLists.txt
index 3218bf9ba4bbb5532a4eab97ee90b7b8b5014d3e..8d8f78a3e7a7dba8c46ee2aa30adfad34c43ee4c 100644 (file)
@@ -1057,8 +1057,11 @@ if(WITH_GL_PROFILE_ES20)
        endif()
 
 else()
-       list(APPEND BLENDER_GL_LIBRARIES "${OPENGL_LIBRARIES}")
-
+       if(OpenGL_GL_PREFERENCE STREQUAL "LEGACY" AND OPENGL_gl_LIBRARY)
+               list(APPEND BLENDER_GL_LIBRARIES ${OPENGL_gl_LIBRARY} ${OPENGL_glx_LIBRARY})
+       else()
+               list(APPEND BLENDER_GL_LIBRARIES ${OPENGL_opengl_LIBRARY} ${OPENGL_glx_LIBRARY})
+       endif()
 endif()
 
 if(WITH_GL_EGL)