]> git.tdb.fi Git - gldbg.git/blobdiff - flavors/gl/source/arraystate.h
Use AutoConstPtr for ArrayState::buffer
[gldbg.git] / flavors / gl / source / arraystate.h
index af4abd442d88bc46ce0cd7960d4f22f2074e28c6..a6654f37fb5aa46987f613b5cd541655be40ca5c 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef ARRAYSTATE_H_
 #define ARRAYSTATE_H_
 
+#include "autoconstptr.h"
 #include "opengl.h"
 
 struct BufferState;
@@ -14,7 +15,7 @@ struct ArrayState
        GLenum type;
        bool normalized;
        unsigned stride;
-       BufferState *buffer;
+       AutoConstPtr<BufferState> buffer;
        long pointer;
 
        ArrayState();