diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-03-22 02:36:29 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-03-22 02:36:29 +0300 |
commit | 78878a132f45e110f99c25bc3b96555e26ac534a (patch) | |
tree | 89841e94d1837bb0a85fefe826a36e38dfa8e41f /source/blender/gpu/intern/gpu_matrix.c | |
parent | 0a274df536251adbb7141f6baf8a95af89e50710 (diff) |
fix blenderplayer build
GPU lib should not depend on editor (glutil) code.
Diffstat (limited to 'source/blender/gpu/intern/gpu_matrix.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_matrix.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_matrix.c b/source/blender/gpu/intern/gpu_matrix.c index 8cc51176310..0383fe89bf1 100644 --- a/source/blender/gpu/intern/gpu_matrix.c +++ b/source/blender/gpu/intern/gpu_matrix.c @@ -32,8 +32,6 @@ #define SUPPRESS_GENERIC_MATRIX_API #include "GPU_matrix.h" -#include "BIF_glutil.h" - #include "BLI_math_matrix.h" #include "BLI_math_rotation.h" #include "BLI_math_vector.h" @@ -191,7 +189,8 @@ void gpuLoadProjectionMatrix3D(const float m[4][4]) { #if SUPPORT_LEGACY_MATRIX if (state.mode == MATRIX_MODE_INACTIVE) { - GLenum mode = glaGetOneInt(GL_MATRIX_MODE); + GLenum mode; + glGetIntegerv(GL_MATRIX_MODE, (GLint*)&mode); if (mode != GL_PROJECTION_MATRIX) { glMatrixMode(GL_PROJECTION_MATRIX); } |