From 13ce62ae0503d98d99be875e21925b296b93b633 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 15 Sep 2020 20:51:04 +0100 Subject: [PATCH] Minor cleanup --- src/Backends/Rendering/OpenGL3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Backends/Rendering/OpenGL3.cpp b/src/Backends/Rendering/OpenGL3.cpp index 2724c43a..d57e2c1a 100644 --- a/src/Backends/Rendering/OpenGL3.cpp +++ b/src/Backends/Rendering/OpenGL3.cpp @@ -986,13 +986,13 @@ void RenderBackend_PrepareToDrawGlyphs(RenderBackend_GlyphAtlas *atlas, RenderBa static unsigned char last_blue; // 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(); last_render_mode = MODE_DRAW_GLYPH; - last_destination_texture = destination_surface->texture_id; last_source_texture = atlas->texture_id; + last_destination_texture = destination_surface->texture_id; last_red = red; last_green = green; last_blue = blue;