]> git.tdb.fi Git - libs/gl.git/commitdiff
Do an early return from Mesh::draw if there's no data
authorMikko Rasa <tdb@tdb.fi>
Sat, 3 Apr 2021 18:55:58 +0000 (21:55 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 3 Apr 2021 18:55:58 +0000 (21:55 +0300)
Otherwise if would try to set zero-sized storage for the buffers, which
is not allowed.

Also guard against empty batches in resize_buffers just in case.


No differences found