Minor cleanup
This commit is contained in:
parent
c6af61de5e
commit
13ce62ae05
1 changed files with 2 additions and 2 deletions
|
@ -986,13 +986,13 @@ void RenderBackend_PrepareToDrawGlyphs(RenderBackend_GlyphAtlas *atlas, RenderBa
|
||||||
static unsigned char last_blue;
|
static unsigned char last_blue;
|
||||||
|
|
||||||
// Flush vertex data if a context-change is needed
|
// Flush vertex data if a context-change is needed
|
||||||
if (last_render_mode != MODE_DRAW_GLYPH || last_destination_texture != destination_surface->texture_id || last_source_texture != atlas->texture_id || last_red != red || last_green != green || last_blue != blue)
|
if (last_render_mode != MODE_DRAW_GLYPH || last_source_texture != atlas->texture_id || last_destination_texture != destination_surface->texture_id || last_red != red || last_green != green || last_blue != blue)
|
||||||
{
|
{
|
||||||
FlushVertexBuffer();
|
FlushVertexBuffer();
|
||||||
|
|
||||||
last_render_mode = MODE_DRAW_GLYPH;
|
last_render_mode = MODE_DRAW_GLYPH;
|
||||||
last_destination_texture = destination_surface->texture_id;
|
|
||||||
last_source_texture = atlas->texture_id;
|
last_source_texture = atlas->texture_id;
|
||||||
|
last_destination_texture = destination_surface->texture_id;
|
||||||
last_red = red;
|
last_red = red;
|
||||||
last_green = green;
|
last_green = green;
|
||||||
last_blue = blue;
|
last_blue = blue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue