diff options
Diffstat (limited to 'source/blender/gpu/GPU_glew.h')
-rw-r--r-- | source/blender/gpu/GPU_glew.h | 8 |
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__ */ |