diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-03-22 21:45:35 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-03-22 21:45:35 +0300 |
commit | 0c2fd1357d32744c59957e0bdc846d34e7b74f30 (patch) | |
tree | 72212654f2f839a60232c079dec2f541355368b8 /source | |
parent | 505cc694b382742561f00ac34112bd55af71f80d (diff) |
OpenGL: fix new projection matrix API
Now using the correct GL enum.
Part of T49450
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_matrix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_matrix.c b/source/blender/gpu/intern/gpu_matrix.c index 0383fe89bf1..eecb87a74c0 100644 --- a/source/blender/gpu/intern/gpu_matrix.c +++ b/source/blender/gpu/intern/gpu_matrix.c @@ -191,8 +191,8 @@ void gpuLoadProjectionMatrix3D(const float m[4][4]) if (state.mode == MATRIX_MODE_INACTIVE) { GLenum mode; glGetIntegerv(GL_MATRIX_MODE, (GLint*)&mode); - if (mode != GL_PROJECTION_MATRIX) { - glMatrixMode(GL_PROJECTION_MATRIX); + if (mode != GL_PROJECTION) { + glMatrixMode(GL_PROJECTION); } glLoadMatrixf((const float*) m); |