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:
authorCampbell Barton <ideasman42@gmail.com>2018-03-31 14:09:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-03-31 14:11:38 +0300
commit0ef38879b3adc200f65b24ab11e1134c6eeec161 (patch)
treebfa8220d514ccd55f332451039687de29d08fc31 /source/blender/blenfont/intern/blf_glyph.c
parent8b74741b9e1b8ac2cead829a3ca2621bb5950865 (diff)
Cleanup: BLF batch drawing naming
- batching -> batch_draw. - ct & size -> len. - start/end -> begin/end (follow GL convention).
Diffstat (limited to 'source/blender/blenfont/intern/blf_glyph.c')
-rw-r--r--source/blender/blenfont/intern/blf_glyph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c
index b05cabcd830..d472825e940 100644
--- a/source/blender/blenfont/intern/blf_glyph.c
+++ b/source/blender/blenfont/intern/blf_glyph.c
@@ -325,10 +325,10 @@ static void blf_texture_draw(const unsigned char color[4], float uv[2][2], float
x2 + g_batch.ofs[0], y2 + g_batch.ofs[1]);
copy_v4_v4(GWN_vertbuf_raw_step(&g_batch.tex_step), (float *)uv);
copy_v4_v4_uchar(GWN_vertbuf_raw_step(&g_batch.col_step), color);
- g_batch.glyph_ct++;
+ g_batch.glyph_len++;
/* Flush cache if it's full. */
- if (g_batch.glyph_ct == BLF_BATCHING_SIZE) {
- blf_batching_draw();
+ if (g_batch.glyph_len == BLF_BATCH_DRAW_LEN_MAX) {
+ blf_batch_draw();
}
}