diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-03-22 00:49:21 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-03-22 00:49:21 +0300 |
commit | 6d2aca5a96efd8ac61eec633c43a41e641379a68 (patch) | |
tree | de0d38249d8b439bf360ceb8d77f8112d4047f9e /source/blender/editors/space_node | |
parent | 7aad5cf573a964753b37573c5a2ea12af5d5952a (diff) |
OpenGL: convert to new matrix API (part 5)
Pretty sure source/blender is now finished, with all legacy matrix calls confined to gpu_matrix.c.
This was the easy part, but doing it first makes the next part much easier. TODO and XXX notes describe what is left.
glMatrixMode is still in place, since the new API does not share this concept of modes. Similar for glOrtho and glFrustum which I'll tackle very soon.
Part of T49450
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index 6796802dca9..51b82c9f421 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -50,11 +50,11 @@ #include "BLF_api.h" #include "BLT_translation.h" -#include "BIF_gl.h" #include "BIF_glutil.h" #include "GPU_draw.h" #include "GPU_immediate.h" +#include "GPU_matrix.h" #include "RNA_access.h" #include "RNA_define.h" @@ -3198,9 +3198,9 @@ void draw_nodespace_back_pix(const bContext *C, ARegion *ar, SpaceNode *snode, b float x, y; glMatrixMode(GL_PROJECTION); - glPushMatrix(); + gpuPushMatrix(); glMatrixMode(GL_MODELVIEW); - glPushMatrix(); + gpuPushMatrix(); /* somehow the offset has to be calculated inverse */ @@ -3286,9 +3286,9 @@ void draw_nodespace_back_pix(const bContext *C, ARegion *ar, SpaceNode *snode, b } glMatrixMode(GL_PROJECTION); - glPopMatrix(); + gpuPopMatrix(); glMatrixMode(GL_MODELVIEW); - glPopMatrix(); + gpuPopMatrix(); } BKE_image_release_ibuf(ima, ibuf, lock); |