From Ulrich Hertlien, new osg::TextureRectangle class.

This commit is contained in:
Robert Osfield
2003-04-07 13:20:53 +00:00
parent 9f0fa75484
commit 7af174fadb
8 changed files with 319 additions and 6 deletions

View File

@@ -10,6 +10,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#include <osg/GLExtensions>
#include <osg/Texture2D>
#include <osg/State>
@@ -151,8 +152,8 @@ void Texture2D::apply(State& state) const
if (_unrefImageDataAfterApply)
{
// only unref image once all the graphics contexts has been set up.
int numLeftToBind=0;
for(int i=0;i<DisplaySettings::instance()->getMaxNumberOfGraphicsContexts();++i)
unsigned int numLeftToBind=0;
for(unsigned int i=0;i<DisplaySettings::instance()->getMaxNumberOfGraphicsContexts();++i)
{
if (_handleList[i]==0) ++numLeftToBind;
}