Browse Source

Fix allocating 0-sized buffers

Daniele Bartolini 9 years ago
parent
commit
95c5274343
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/world/render_world.cpp

+ 1 - 0
src/world/render_world.cpp

@@ -364,6 +364,7 @@ void RenderWorld::render(const Matrix4x4& view, const Matrix4x4& projection)
 	}
 
 	// Render sprites
+	if (sid.first_hidden)
 	{
 		bgfx::VertexDecl decl;
 		decl.begin()