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-21 07:09:40 +0300
committerMike Erwin <significant.bit@gmail.com>2017-03-21 07:09:40 +0300
commit938613f720f0cd31cb9f4b2dfce0a1a90b10b964 (patch)
tree0998573578fc5233d975ca60450d55940030e1ee /source/blender/editors/uvedit/uvedit_draw.c
parent06f7fba6aaad19023f9430c311ab088a73a6d3e2 (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.c6
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);
}