Minor cleanup

This commit is contained in:
Clownacy 2020-09-15 20:51:04 +01:00
parent c6af61de5e
commit 13ce62ae05

View file

@ -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;