Tilemap: Don't emit draw with zero quads
This is illegal on some mobile drivers.
This commit is contained in:
parent
b42725ea20
commit
c63a8947ce
1 changed files with 3 additions and 0 deletions
|
@ -1000,6 +1000,9 @@ void GroundLayer::updateVboCount()
|
|||
|
||||
void GroundLayer::draw()
|
||||
{
|
||||
if (p->groundVert.size() == 0)
|
||||
return;
|
||||
|
||||
ShaderBase *shader;
|
||||
|
||||
p->bindShader(shader);
|
||||
|
|
Loading…
Add table
Reference in a new issue