diff --git a/include/osg/Texture2DArray b/include/osg/Texture2DArray index b6ed4a6c6..82665f5a6 100644 --- a/include/osg/Texture2DArray +++ b/include/osg/Texture2DArray @@ -42,6 +42,9 @@ class OSG_EXPORT Texture2DArray : public Texture virtual GLenum getTextureTarget() const { return GL_TEXTURE_2D_ARRAY_EXT; } + /** Texture2DArray is related to non fixed pipeline usage only so isn't appropriate to enable/disable.*/ + virtual bool getModeUsage(StateAttribute::ModeUsage&) const { return false; } + /** Set the texture image for specified layer. */ virtual void setImage(unsigned int layer, Image* image); diff --git a/include/osg/Texture2DMultisample b/include/osg/Texture2DMultisample index fa19deeb4..d5f4ff862 100644 --- a/include/osg/Texture2DMultisample +++ b/include/osg/Texture2DMultisample @@ -47,6 +47,9 @@ class OSG_EXPORT Texture2DMultisample : public Texture return GL_TEXTURE_2D_MULTISAMPLE; } + /** Texture2DMultisample is related to non fixed pipeline usage only so isn't appropriate to enable/disable.*/ + virtual bool getModeUsage(StateAttribute::ModeUsage&) const { return false; } + /** Sets the texture width and height. If width or height are zero, * calculate the respective value from the source image size. */ inline void setTextureSize(int width, int height) const