From 694aec666c28aed5d6797900c2f92be76cbf4c4c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 19 Jan 2004 11:01:45 +0000 Subject: [PATCH] Fixed bug in logic in areAllTextureObjectsLoaded() which was producing the exact opposite result to what it should have been generating. --- src/osg/Texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/Texture.cpp b/src/osg/Texture.cpp index b95ac8ac0..b6c0100b0 100644 --- a/src/osg/Texture.cpp +++ b/src/osg/Texture.cpp @@ -549,9 +549,9 @@ bool Texture::areAllTextureObjectsLoaded() const { for(unsigned int i=0;igetMaxNumberOfGraphicsContexts();++i) { - if (_textureObjectBuffer[i]==0) return true; + if (_textureObjectBuffer[i]==0) return false; } - return false; + return true; } void Texture::applyTexImage2D_load(State& state, GLenum target, const Image* image, GLsizei inwidth, GLsizei inheight,GLsizei numMipmapLevels) const