]> git.tdb.fi Git - libs/gl.git/blobdiff - source/mesh.h
Simplify VAO setup code
[libs/gl.git] / source / mesh.h
index ba21f256a6370abecb45d17feef9d40aa5818051..730b724c9e81a9eee6072cac1d4762b503dbd6fc 100644 (file)
@@ -39,7 +39,7 @@ private:
        Buffer *ibuf;
        unsigned vao_id;
        bool defer_buffers;
-       mutable unsigned char dirty;
+       mutable bool dirty;
        const WindingTest *winding;
 
 public:
@@ -51,7 +51,7 @@ public:
        void use_buffers(bool);
 private:
        void create_buffers();
-       void refresh() const;
+       void setup_vao() const;
 
 public:
        const VertexArray &get_vertices() const { return vertices; }