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:
authorMike Erwin <significant.bit@gmail.com>2017-03-22 02:36:29 +0300
committerMike Erwin <significant.bit@gmail.com>2017-03-22 02:36:29 +0300
commit78878a132f45e110f99c25bc3b96555e26ac534a (patch)
tree89841e94d1837bb0a85fefe826a36e38dfa8e41f /source/blender/gpu/intern/gpu_matrix.c
parent0a274df536251adbb7141f6baf8a95af89e50710 (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.c5
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);
}