Skip to content

Commit

Permalink
Fix for static meshes not drawing sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Interrupt committed Nov 26, 2018
1 parent 9894432 commit 44c1e53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dungeoneer/src/com/interrupt/dungeoneer/gfx/GlRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -930,12 +930,14 @@ public void renderWorld(Level loadedLvl) {
chunks.sort(WorldChunk.sorter);

// draw static mesh batches
if(worldShaderInfo != null) worldShaderInfo.begin();
for(WorldChunk chunk : chunks) {
chunk.UpdateVisiblity(camera);
if(chunk.visible) {
chunk.renderStaticMeshBatch(worldShaderInfo);
}
}
if(worldShaderInfo != null) worldShaderInfo.end();

// draw walls / floors / ceilings
for(WorldChunk chunk : chunks) {
Expand Down

0 comments on commit 44c1e53

Please sign in to comment.