> If I'm using the OpenGL debug message extension then I can see a 
> GL_INVALID_OPERATION
> with the message 'Texture is immutable' caused by a call of glTexStorage2D in 
> 'Texture2D.cpp'
> in line 309. Both warnings are printed directly after this invalid operation.
> 
> I'm wondering how the texture object can ever be immutable here, because
> it's just created in line 306.

Looking at the implementation of 'TextureObjectSet::takeOrGenerate',
then a texture object from 'TextureObjectSet::_orphanedTextureObjects'
might be reused and then 'glTexStorage2D' might be called multiple times
on the same texture object, which would then result into GL_INVALID_OPERATION,
because 'glTexStorage2D' should be only called once and afterwards the
texture object is immutable in this regard.

Is this right?
Is there some kind of flag missing, if 'glTexStorage2D' has already been called?

Greetings,
Daniel
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/mailman.78368.1585058109.7169.osg-users-openscenegraph.org%40lists.openscenegraph.org.

Reply via email to