X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Frendertarget.cpp;h=302b983f478ecd34a1d67ebc92fd3ecec33f7d43;hb=3a1b9cbe2441ae670a97541dc8ccb0a2860c8302;hp=6a1142857492dce2fc1558f43c017eed6b003015;hpb=6353307898cd397e2bcde13e2448a8a678a60004;p=libs%2Fgl.git diff --git a/source/render/rendertarget.cpp b/source/render/rendertarget.cpp index 6a114285..302b983f 100644 --- a/source/render/rendertarget.cpp +++ b/source/render/rendertarget.cpp @@ -17,7 +17,7 @@ RenderTarget::RenderTarget(unsigned w, unsigned h, const FrameFormat &f): { textures.reserve(f.size()); unsigned samples = f.get_samples(); - for(const UInt16 *i=f.begin(); i!=f.end(); ++i) + for(const uint16_t *i=f.begin(); i!=f.end(); ++i) { FrameAttachment fa = static_cast(*i); PixelFormat pf = get_attachment_pixelformat(*i); @@ -41,8 +41,8 @@ RenderTarget::RenderTarget(unsigned w, unsigned h, const FrameFormat &f): RenderTarget::~RenderTarget() { - for(vector::iterator i=textures.begin(); i!=textures.end(); ++i) - delete *i; + for(Texture *t: textures) + delete t; } const Texture2D &RenderTarget::get_target_texture(unsigned i) const @@ -70,7 +70,7 @@ void RenderTarget::set_debug_name(const string &name) fbo.set_debug_name(name+" [FBO]"); const FrameFormat &fmt = fbo.get_format(); unsigned i = 0; - for(const UInt16 *j=fmt.begin(); j!=fmt.end(); ++i, ++j) + for(const uint16_t *j=fmt.begin(); j!=fmt.end(); ++i, ++j) { unsigned attach_pt = get_attach_point(static_cast(*j));