]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/SkyBoxMesh.hpp
avoid zero vertex draw calls
[blank.git] / src / graphics / SkyBoxMesh.hpp
index ab1da8dc807280d2d65a9508d0ca907c31dd2550..2378327fc50a3848cdd0a3664fc06e6dc43a0823 100644 (file)
@@ -47,7 +47,13 @@ public:
        void LoadUnitBox();
        void Update(const Buffer &) noexcept;
 
-       void Draw() const noexcept;
+       bool Empty() const noexcept {
+               return vao.Empty();
+       }
+
+       void Draw() const noexcept {
+               vao.DrawTriangleElements();
+       }
 
 private:
        VAO vao;