diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-04-06 19:46:33 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-04-06 19:46:33 +0300 |
commit | 934dfc420088b4ce06bb050ade1ab6a4fa8e6d72 (patch) | |
tree | 9d831c128c7f9903d1438c69b17603f01f20715f /source/blender/gpu/CMakeLists.txt | |
parent | 843922a480ad9edb388cb3e1c6949b77ae8f2eac (diff) |
New build option WITH_LEGACY_OPENGL
This introduces a new CMake option - WITH_LEGACY_OPENGL. Without this option
things may not draw perfectly, however, we should soon be able to build with
OpenGL core profile.
The matrix-related api calls are (still) not handled here (glTranslate, ...).
There seems to be no consensus on whether to make this build option the
default. We can talk about this later. For now two things are the
priority:
(1) To get rid of deprecated calls when WITH_LEGACY_OPENGL is ON
(2) To make core profile work for Mesa/Mac when WITH_LEGACY_OPENGL is OFF
Reviewers: merwin, sergey, campbellbarton
Differential Revision: https://developer.blender.org/D2603
Many thanks for Sergey Sharybin for the help.
Diffstat (limited to 'source/blender/gpu/CMakeLists.txt')
-rw-r--r-- | source/blender/gpu/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt index 00b58baabc9..29ad827c6bc 100644 --- a/source/blender/gpu/CMakeLists.txt +++ b/source/blender/gpu/CMakeLists.txt @@ -107,6 +107,7 @@ set(SRC GPU_immediate.h GPU_immediate_util.h GPU_init_exit.h + GPU_legacy_stubs.h GPU_material.h GPU_matrix.h GPU_select.h @@ -235,5 +236,9 @@ 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}") |