From 98763cc4c58d4ed9dc7812cd2a871cea51aada8a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 11 Sep 2007 10:16:21 +0000 Subject: [PATCH] From Rafa Giatan, "Changed int to GLsizei in the input parameter of the method osg::Texture2DArray::applyTexImage2DArray_subload inside Texture2DArray (lines 214 and 257), Otherwise it gives a compile error on MacOSX." --- src/osg/Texture2DArray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/Texture2DArray.cpp b/src/osg/Texture2DArray.cpp index 8abe0d70d..a013d41f1 100644 --- a/src/osg/Texture2DArray.cpp +++ b/src/osg/Texture2DArray.cpp @@ -204,7 +204,7 @@ void Texture2DArray::apply(State& state) const else { // for each image of the texture array do - for (int n=0; n < _textureDepth; n++) + for (GLsizei n=0; n < _textureDepth; n++) { osg::Image* image = _images[n].get(); @@ -248,7 +248,7 @@ void Texture2DArray::apply(State& state) const applyTexParameters(GL_TEXTURE_2D_ARRAY_EXT, state); // now for each layer do - for (int n=0; n<_textureDepth; n++) + for (GLsizei n=0; n<_textureDepth; n++) { // if image is valid then upload it to the texture memory osg::Image* image = _images[n].get();