ref: b4d9b15a9c4f6bfb003efe85aed62f17f647871a
parent: bfc2d4e3269851e7d55fb9a58a03a94c64f163d9
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Apr 21 11:23:20 EDT 2020
Add a TODO
--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -519,6 +519,7 @@
GLuint gl_texture_id = (GLuint)texture_id;
// Flush the vertex buffer if we're about to destroy its texture
+ // TODO - This leaves `last_source_texture`/`last_destination_texture` dangling
if (gl_texture_id == last_source_texture || gl_texture_id == last_destination_texture)
FlushVertexBuffer();
@@ -847,6 +848,7 @@
return;
// Flush the vertex buffer if we're about to destroy its texture
+ // TODO - This leaves `last_source_texture`/`last_destination_texture` dangling
if (surface->texture_id == last_source_texture || surface->texture_id == last_destination_texture)
FlushVertexBuffer();