]> git.tdb.fi Git - libs/gl.git/blobdiff - source/mesh.h
Collapse the shared part of Mesh::draw and draw_instanced
[libs/gl.git] / source / mesh.h
index b4ba0c45151534fab16a0023b05c00cce636d5da..9e086e8770502778167702a3bebaa6cc935f6148 100644 (file)
@@ -88,7 +88,10 @@ public:
 
        void draw(Renderer &) const;
        void draw_instanced(Renderer &, const VertexSetup &, unsigned) const;
+private:
+       void draw(Renderer &, const VertexSetup *, unsigned) const;
 
+public:
        virtual int get_load_priority() const { return 1; }
        virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0);
        virtual UInt64 get_data_size() const;