From 94240305a4f0afb1df915d62f4db159a5b1da4fe Mon Sep 17 00:00:00 2001 From: Don BURNS Date: Sun, 17 Oct 2004 06:14:10 +0000 Subject: [PATCH] Fix for minor compile error (internal error) for VS7. --- examples/osgvolume/osgvolume.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index b93eabfe5..04107668e 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -442,9 +442,9 @@ osg::Image* createNormalMapTexture(osg::Image* image_3d) grad.z() = osg::clampBetween((grad.z()+1.0f)*128.0f,0.0f,255.0f); } - *destination++ = (unsigned char)(grad.x()); // scale and bias X. - *destination++ = (unsigned char)(grad.y()); // scale and bias Y. - *destination++ = (unsigned char)(grad.z()); // scale and bias Z. + *(destination++) = (unsigned char)(grad.x()); // scale and bias X. + *(destination++) = (unsigned char)(grad.y()); // scale and bias Y. + *(destination++) = (unsigned char)(grad.z()); // scale and bias Z. *destination++ = *ptr;