-fixed sp,e demos issues and crashes

This commit is contained in:
Mergul 2021-03-06 23:39:43 +01:00
parent fa0c196c60
commit 2107f3908c
9 changed files with 100 additions and 42 deletions

View file

@ -448,6 +448,7 @@ struct Renderer
void draw(scope ref const(DrawData) data)
{
if(prepared_items >= MaxObjects)return;
if(threads[data.thread_id].blocks.length <= data.material_id)return;
__draw(this,data);//tex,pos,size,coords,depth,color,angle,material_id,mesh_id,thread_id);
}