]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/VertexArray.hpp
avoid zero vertex draw calls
[blank.git] / src / graphics / VertexArray.hpp
index 5f70f4227365849f5416b220fd36a679d011f0c7..ab02a56f175e9be943b88b9973918bddacfb57f8 100644 (file)
@@ -24,6 +24,8 @@ public:
        VertexArray<N> &operator =(VertexArray<N> &&) noexcept;
 
 public:
+       bool Empty() const noexcept { return idx_count == 0; }
+
        void Bind() const noexcept;
 
        template <class T>