]> git.tdb.fi Git - gldbg.git/commitdiff
Use AutoConstPtr for ArrayState::buffer
authorMikko Rasa <tdb@tdb.fi>
Sat, 25 Aug 2012 10:53:15 +0000 (13:53 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 25 Aug 2012 10:53:15 +0000 (13:53 +0300)
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();