From 39642572d2e687d669a793a4d64b16e680a20d62 Mon Sep 17 00:00:00 2001 From: Julien Valentin Date: Wed, 18 Jul 2018 16:19:21 +0200 Subject: [PATCH] Avoid name collision with size_t --- src/osg/ImageUtils.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/osg/ImageUtils.cpp b/src/osg/ImageUtils.cpp index de965b230..99dab1a27 100644 --- a/src/osg/ImageUtils.cpp +++ b/src/osg/ImageUtils.cpp @@ -439,29 +439,29 @@ osg::Image* createImage3D(const ImageList& imageList, // compute nearest powers of two for each axis. - int size_s = 1; - int size_t = 1; - int size_r = 1; + int isize_s = 1; + int isize_t = 1; + int isize_r = 1; if (resizeToPowerOfTwo) { - while(size_s image_3d = new osg::Image; - image_3d->allocateImage(size_s,size_t,size_r, + image_3d->allocateImage(isize_s,isize_t,isize_r, desiredPixelFormat,GL_UNSIGNED_BYTE); - unsigned int r_offset = (total_rt(), image_3d->t()); int num_r = minimum(image->r(), (image_3d->r() - curr_dest_r)); - unsigned int s_offset_dest = (image->s()s())/2 : 0; - unsigned int t_offset_dest = (image->t()t())/2 : 0; + unsigned int s_offset_dest = (image->s()s())/2 : 0; + unsigned int t_offset_dest = (image->t()t())/2 : 0; copyImage(image, 0, 0, 0, num_s, num_t, num_r, image_3d.get(), s_offset_dest, t_offset_dest, curr_dest_r, false);