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-04 09:49:07 +0300
committerMike Erwin <significant.bit@gmail.com>2017-03-04 09:49:07 +0300
commit76c9f1a649c19c117278615bf9e8000c595b0e36 (patch)
tree44bde32fea86919037d3180bd591dbdfe5fa602d /source/blender/editors/screen/glutil.c
parenta514fea93248756b4319a5f661a2f292bb9125ae (diff)
OpenGL: remove fdrawcheckerboard
This helper function was marked DEPRECATED since it uses old OpenGL calls. Switched last 2 uses to imm_draw_checker_box, which does the same thing, only awesome. Part of T49043
Diffstat (limited to 'source/blender/editors/screen/glutil.c')
-rw-r--r--source/blender/editors/screen/glutil.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c
index 14fdcb1f721..dd06f3952af 100644
--- a/source/blender/editors/screen/glutil.c
+++ b/source/blender/editors/screen/glutil.c
@@ -62,22 +62,6 @@ void fdrawline(float x1, float y1, float x2, float y2)
glEnd();
}
-void fdrawcheckerboard(float x1, float y1, float x2, float y2)
-{
- /* DEPRECATED: use imm_draw_checker_box instead */
- unsigned char col1[4] = {40, 40, 40}, col2[4] = {50, 50, 50};
-
- glColor3ubv(col1);
- glRectf(x1, y1, x2, y2);
- glColor3ubv(col2);
-
- GPU_basic_shader_bind(GPU_SHADER_STIPPLE | GPU_SHADER_USE_COLOR);
- GPU_basic_shader_stipple(GPU_SHADER_STIPPLE_CHECKER_8PX);
- glRectf(x1, y1, x2, y2);
- GPU_basic_shader_bind(GPU_SHADER_USE_COLOR);
-}
-
-
/* ******************************************** */
void setlinestyle(int nr)