diff options
Diffstat (limited to 'source/blender/gpu/GPU_glew.h')
-rw-r--r-- | source/blender/gpu/GPU_glew.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/gpu/GPU_glew.h b/source/blender/gpu/GPU_glew.h index 94217863fd6..663660ab234 100644 --- a/source/blender/gpu/GPU_glew.h +++ b/source/blender/gpu/GPU_glew.h @@ -32,6 +32,11 @@ #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" +# endif +#endif #endif /* __GPU_GLEW_H__ */ |