Remove now-unneeded sanity checks
This commit is contained in:
parent
afb3c834a7
commit
ff9c2dc4fc
1 changed files with 0 additions and 6 deletions
|
@ -901,9 +901,6 @@ void RenderBackend_Blit(RenderBackend_Surface *source_surface, const RenderBacke
|
|||
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
|
||||
|
@ -984,9 +981,6 @@ void RenderBackend_ColourFill(RenderBackend_Surface *surface, const RenderBacken
|
|||
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
|
||||
if (last_render_mode != MODE_COLOUR_FILL || last_destination_texture != surface->texture_id || last_red != red || last_green != green || last_blue != blue)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue