Fixed RenderToTexture bug which occured when the viewport dimensions where

different than the texture being written to.
This commit is contained in:
Robert Osfield
2006-08-03 15:57:39 +00:00
parent de9ce1e85f
commit 174e3b3dc3
9 changed files with 113 additions and 26 deletions

View File

@@ -85,10 +85,11 @@ class OSG_EXPORT TextureRectangle : public Texture
}
void setTextureWidth(int width) { _textureWidth=width; }
int getTextureWidth() const { return _textureWidth; }
void setTextureHeight(int height) { _textureHeight=height; }
int getTextureHeight() const { return _textureHeight; }
virtual int getTextureWidth() const { return _textureWidth; }
virtual int getTextureHeight() const { return _textureHeight; }
virtual int getTextureDepth() const { return 1; }
class SubloadCallback : public Referenced
{