]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/EntityMesh.hpp
avoid zero vertex draw calls
[blank.git] / src / graphics / EntityMesh.hpp
index 804bb6ede5f1a59488fdff2226b9492267c4c36a..58b29e51f7726fa078b8036443e857a587c25730 100644 (file)
@@ -69,7 +69,13 @@ public:
 public:
        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;