diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-03-21 07:09:40 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-03-21 07:09:40 +0300 |
commit | 938613f720f0cd31cb9f4b2dfce0a1a90b10b964 (patch) | |
tree | 0998573578fc5233d975ca60450d55940030e1ee /source/blender/editors/uvedit/uvedit_draw.c | |
parent | 06f7fba6aaad19023f9430c311ab088a73a6d3e2 (diff) |
OpenGL: convert to new matrix API (part 1 of x)
Part of T49450
For this batch I focused on usage of (now-obsolete) macros in BIF_gl.h
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_draw.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_draw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c index 25e519cc428..34fa9626103 100644 --- a/source/blender/editors/uvedit/uvedit_draw.c +++ b/source/blender/editors/uvedit/uvedit_draw.c @@ -52,10 +52,10 @@ #include "BKE_scene.h" -#include "BIF_gl.h" #include "BIF_glutil.h" #include "GPU_immediate.h" +#include "GPU_matrix.h" #include "ED_image.h" #include "ED_mesh.h" @@ -79,7 +79,7 @@ void ED_image_draw_cursor(ARegion *ar, const float cursor[2]) x_fac = zoom[0]; y_fac = zoom[1]; - glTranslate2fv(cursor); + gpuTranslate2fv(cursor); unsigned int pos = add_attrib(immVertexFormat(), "pos", GL_FLOAT, 2, KEEP_FLOAT); @@ -140,7 +140,7 @@ void ED_image_draw_cursor(ARegion *ar, const float cursor[2]) immUnbindProgram(); - glTranslatef(-cursor[0], -cursor[1], 0.0); + gpuTranslate2f(-cursor[0], -cursor[1]); setlinestyle(0); } |