diff options
author | Ray Molenkamp <github@lazydodo.com> | 2018-06-16 05:17:16 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2018-06-16 05:17:16 +0300 |
commit | 9d876960e8914bfa11bc3be1e500832711c20350 (patch) | |
tree | fe0a55bf269e93cbb51e3f229e01a06722d472d2 /source/blender/gpu/CMakeLists.txt | |
parent | 01f576e87b54159bb360cf1ed85518bb75231107 (diff) |
This option limits visibility of the glew.h header to just bf_gpu and intern_gawain
this is to highlight areas in the code that still directly do opengl calls or use
opengl types.
This is in preparation for supporting alternative rendering back-ends.
Reviewers: brecht, fclem
Differential Revision: https://developer.blender.org/D3304
Diffstat (limited to 'source/blender/gpu/CMakeLists.txt')
-rw-r--r-- | source/blender/gpu/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt index 481133ba984..fe6d438924f 100644 --- a/source/blender/gpu/CMakeLists.txt +++ b/source/blender/gpu/CMakeLists.txt @@ -23,6 +23,14 @@ # # ***** END GPL LICENSE BLOCK ***** +# WITH_OPENGL limits the visibility of the opengl headers to just gawain and bg_gpu, +# to more easily highlight codepadths in other libraries that need to be refactored, +# bf_gpu is allowed to have opengl regardless of this option. + +if(NOT WITH_OPENGL) + add_definitions(-DWITH_OPENGL) +endif() + set(INC . ../blenkernel |