don't attempt to draw when the window is minimized

This commit is contained in:
Reuben Dunnington 2023-08-21 12:03:45 -07:00
parent 513bdacf64
commit c27e1c6b62
Signed by: rdunnington
GPG Key ID: 4EC5290E704FD482
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,8 @@ void orca_surface_render_commands(oc_surface surface,
if(((char*)primitives > memBase)
&& ((char*)primitives + primitiveCount * sizeof(oc_primitive) - memBase <= memSize)
&& ((char*)elements > memBase)
&& ((char*)elements + eltCount * sizeof(oc_path_elt) - memBase <= memSize))
&& ((char*)elements + eltCount * sizeof(oc_path_elt) - memBase <= memSize)
&& oc_window_is_minimized(app->window) == false)
{
oc_surface_render_commands(surface,
clearColor,