diff options
Diffstat (limited to 'src/render.cpp')
-rw-r--r-- | src/render.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render.cpp b/src/render.cpp index 5b3a1f1..7c047f6 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -79,9 +79,11 @@ void RenderSystem::update([[maybe_unused]] entityx::EntityManager& entities, * DRAWING * *************/ - entities.each<Render, Position>( - [this, a](entityx::Entity, Render, Position &p){ + [this, a](entityx::Entity, Render &r, Position &p){ + + if (!r.visible) + return; GLuint tri_vbo; GLfloat tri_data[] = { |