Tilemap: Don't emit draw with zero quads
This is illegal on some mobile drivers.
This commit is contained in:
parent
b42725ea20
commit
c63a8947ce
|
@ -1000,6 +1000,9 @@ void GroundLayer::updateVboCount()
|
|||
|
||||
void GroundLayer::draw()
|
||||
{
|
||||
if (p->groundVert.size() == 0)
|
||||
return;
|
||||
|
||||
ShaderBase *shader;
|
||||
|
||||
p->bindShader(shader);
|
||||
|
|
Loading…
Reference in New Issue