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 21:45:35 +0300
committerMike Erwin <significant.bit@gmail.com>2017-03-22 21:45:35 +0300
commit0c2fd1357d32744c59957e0bdc846d34e7b74f30 (patch)
tree72212654f2f839a60232c079dec2f541355368b8 /source/blender/gpu/intern/gpu_matrix.c
parent505cc694b382742561f00ac34112bd55af71f80d (diff)
OpenGL: fix new projection matrix API
Now using the correct GL enum. Part of T49450
Diffstat (limited to 'source/blender/gpu/intern/gpu_matrix.c')
-rw-r--r--source/blender/gpu/intern/gpu_matrix.c4
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);