Fixed setUsage typo in PixelDataBufferObject, and fixed data pointer management in Texture::applyTexImage2D_subload().

This commit is contained in:
Robert Osfield
2009-10-07 13:02:51 +00:00
parent dff56a15c6
commit 284f75a111
2 changed files with 7 additions and 19 deletions

View File

@@ -1366,7 +1366,7 @@ const Image* PixelBufferObject::getImage() const
PixelDataBufferObject::PixelDataBufferObject()
{
setTarget(GL_ARRAY_BUFFER_ARB);
setTarget(GL_DYNAMIC_DRAW_ARB);
setUsage(GL_DYNAMIC_DRAW_ARB);
}
//--------------------------------------------------------------------------------