From 8205a1932341834f31d5efd16cef51bc66eab9de Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 8 Apr 2017 12:00:46 +1000 Subject: Fix WITH_LEGACY_OPENGL=ON This wasn't working outside of gpu module. --- source/CMakeLists.txt | 4 ++++ source/blender/gpu/CMakeLists.txt | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source') diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index c696719e650..4e4724771f3 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -23,6 +23,10 @@ # # ***** END GPL LICENSE BLOCK ***** +if(WITH_LEGACY_OPENGL) + add_definitions(-DWITH_LEGACY_OPENGL) +endif() + add_subdirectory(blender) if(WITH_GAMEENGINE) diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt index 29ad827c6bc..6a61b93e621 100644 --- a/source/blender/gpu/CMakeLists.txt +++ b/source/blender/gpu/CMakeLists.txt @@ -236,9 +236,5 @@ if(WITH_OPENSUBDIV) add_definitions(-DWITH_OPENSUBDIV) endif() -if(WITH_LEGACY_OPENGL) - add_definitions(-DWITH_LEGACY_OPENGL) -endif() - blender_add_lib(bf_gpu "${SRC}" "${INC}" "${INC_SYS}") -- cgit v1.2.3