From: Mikko Rasa Date: Sat, 25 Aug 2012 10:53:15 +0000 (+0300) Subject: Use AutoConstPtr for ArrayState::buffer X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e9e9356d4e270acce061b2fd4e5913545b7907ee;p=gldbg.git Use AutoConstPtr for ArrayState::buffer --- diff --git a/flavors/gl/source/arraystate.h b/flavors/gl/source/arraystate.h index af4abd4..a6654f3 100644 --- a/flavors/gl/source/arraystate.h +++ b/flavors/gl/source/arraystate.h @@ -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 buffer; long pointer; ArrayState();