diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-19 11:46:05 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-19 16:22:58 +0300 |
commit | 3f11be3f7de90517826cb114f648b06fc85b67d4 (patch) | |
tree | 3698f730600c6fe119df84c759376f5c2d4fc130 /source/blender/editors/interface/interface.c | |
parent | 288892bf08f380afdfe7f2f8f5b1ca2d2e037fe3 (diff) |
Get rid of glMatrixMode calls
With the explicit calls we don't need to worry about current state
outside of the GPU module now. In fact. we don't need to worry about
current matrix mode in core profile at all.
Legacy OpenGL now has some code which ensures current matrix mode
when using explicit calls to push/pop matrix.
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 365ebfc17c4..75ccdece799 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -1377,9 +1377,7 @@ void UI_block_draw(const bContext *C, uiBlock *block) ui_but_to_pixelrect(&rect, ar, block, NULL); /* pixel space for AA widgets */ - glMatrixMode(GL_PROJECTION); gpuPushProjectionMatrix(); - glMatrixMode(GL_MODELVIEW); gpuPushMatrix(); gpuLoadIdentity(); @@ -1406,9 +1404,7 @@ void UI_block_draw(const bContext *C, uiBlock *block) } /* restore matrix */ - glMatrixMode(GL_PROJECTION); gpuPopProjectionMatrix(); - glMatrixMode(GL_MODELVIEW); gpuPopMatrix(); if (multisample_enabled) |