Fixed RenderToTexture bug which occured when the viewport dimensions where
different than the texture being written to.
This commit is contained in:
@@ -220,6 +220,10 @@ class OSG_EXPORT Texture : public osg::StateAttribute
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual int getTextureWidth() const { return 0; }
|
||||
virtual int getTextureHeight() const { return 0; }
|
||||
virtual int getTextureDepth() const { return 0; }
|
||||
|
||||
enum WrapParameter {
|
||||
WRAP_S,
|
||||
WRAP_T,
|
||||
|
||||
Reference in New Issue
Block a user