From e9e9356d4e270acce061b2fd4e5913545b7907ee Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 25 Aug 2012 13:53:15 +0300 Subject: [PATCH] Use AutoConstPtr for ArrayState::buffer --- flavors/gl/source/arraystate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.43.0