don't attempt to draw when the window is minimized #53

Merged
MartinFouilleul merged 1 commits from fix_minmized_window_logspam into main 2023-08-22 20:10:29 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit c27e1c6b62 - Show all commits

View File

@ -204,7 +204,8 @@ void orca_surface_render_commands(oc_surface surface,
if(((char*)primitives > memBase) if(((char*)primitives > memBase)
&& ((char*)primitives + primitiveCount * sizeof(oc_primitive) - memBase <= memSize) && ((char*)primitives + primitiveCount * sizeof(oc_primitive) - memBase <= memSize)
&& ((char*)elements > memBase) && ((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, oc_surface_render_commands(surface,
clearColor, clearColor,