Commit: 0c2fd1357d32744c59957e0bdc846d34e7b74f30 Author: Mike Erwin Date: Wed Mar 22 14:45:35 2017 -0400 Branches: blender2.8 https://developer.blender.org/rB0c2fd1357d32744c59957e0bdc846d34e7b74f30
OpenGL: fix new projection matrix API Now using the correct GL enum. Part of T49450 =================================================================== M source/blender/gpu/intern/gpu_matrix.c =================================================================== diff --git a/source/blender/gpu/intern/gpu_matrix.c b/source/blender/gpu/intern/gpu_matrix.c index 0383fe89bf..eecb87a74c 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); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs