shithub: cstory

Download patch

ref: 13ce62ae0503d98d99be875e21925b296b93b633
parent: c6af61de5e50608fc66f2041bc6e487b55cf7b3c
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Sep 15 16:51:04 EDT 2020

Minor cleanup

--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -986,13 +986,13 @@
 	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;