Tilemap: Don't emit draw with zero quads

This is illegal on some mobile drivers.
This commit is contained in:
Jonas Kulla 2015-01-02 00:09:53 +01:00
parent b42725ea20
commit c63a8947ce
1 changed files with 3 additions and 0 deletions

View File

@ -1000,6 +1000,9 @@ void GroundLayer::updateVboCount()
void GroundLayer::draw() void GroundLayer::draw()
{ {
if (p->groundVert.size() == 0)
return;
ShaderBase *shader; ShaderBase *shader;
p->bindShader(shader); p->bindShader(shader);