Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2018-06-16 05:17:16 +0300
committerRay Molenkamp <github@lazydodo.com>2018-06-16 05:17:16 +0300
commit9d876960e8914bfa11bc3be1e500832711c20350 (patch)
treefe0a55bf269e93cbb51e3f229e01a06722d472d2 /source/blender/gpu/GPU_glew.h
parent01f576e87b54159bb360cf1ed85518bb75231107 (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/GPU_glew.h')
-rw-r--r--source/blender/gpu/GPU_glew.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/gpu/GPU_glew.h b/source/blender/gpu/GPU_glew.h
index afe1c9763ad..b3e2a9fcfa5 100644
--- a/source/blender/gpu/GPU_glew.h
+++ b/source/blender/gpu/GPU_glew.h
@@ -32,10 +32,12 @@
#ifndef __GPU_GLEW_H__
#define __GPU_GLEW_H__
-#include "glew-mx.h"
+#if defined(WITH_OPENGL)
+ #include "glew-mx.h"
-#ifndef WITH_LEGACY_OPENGL
-#include "GPU_legacy_stubs.h"
+ #ifndef WITH_LEGACY_OPENGL
+ #include "GPU_legacy_stubs.h"
+ #endif
#endif
#endif /* __GPU_GLEW_H__ */