Added status collection to full range of texture classes

This commit is contained in:
Robert Osfield
2009-09-27 14:38:38 +00:00
parent 9a1cd7072f
commit e59f654290
5 changed files with 23 additions and 5 deletions

View File

@@ -195,7 +195,11 @@ void Texture3D::apply(State& state) const
// get the contextID (user defined ID of 0 upwards) for the
// current OpenGL context.
const unsigned int contextID = state.getContextID();
Texture::TextureObjectManager* tom = Texture::getTextureObjectManager(contextID);
ElapsedTime elapsedTime(&(tom->getApplyTime()));
tom->getNumberApplied()++;
const Extensions* extensions = getExtensions(contextID,true);
if (!extensions->isTexture3DSupported())