ref: ff9c2dc4fc1a8e99c3cdd613462b4d5fe5185c2e
parent: afb3c834a77f7da8a27afc5fd2926792e0227f81
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Apr 21 10:57:05 EDT 2020
Remove now-unneeded sanity checks
--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -901,9 +901,6 @@
if (source_surface == NULL || destination_surface == NULL)
return;
- if (rect->right - rect->left < 0 || rect->bottom - rect->top < 0)
- return;
-
const RenderMode render_mode = (colour_key ? MODE_DRAW_SURFACE_WITH_TRANSPARENCY : MODE_DRAW_SURFACE);
// Flush vertex data if a context-change is needed
@@ -982,9 +979,6 @@
static unsigned char last_blue;
if (surface == NULL)
- return;
-
- if (rect->right - rect->left < 0 || rect->bottom - rect->top < 0)
return;
// Flush vertex data if a context-change is needed