[osg-users] Invalid operation on immutable texture

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Wed Mar 25 14:25:45 PDT 2020


What i can think of that doesn't break whole design is to call 
glGetTexParameter 
<https://www.khronos.org/opengl/wiki/GLAPI/glGetTexParameter> (GL_TEXTURE_IMMUTABLE_FORMAT) 
before calling glTexStorage

Le lundi 23 mars 2020 16:39:50 UTC+1, OpenSceneGraph Users a écrit :
>
> Hi, 
>
> I'm trying to find the origin of the two warnings we're getting in our 
> application (OpenSceneGraph 3.6.4): 
>    Warning: detected OpenGL error 'invalid operation' after applying 
> attribute Viewport 0x5555576608a0 
>    Warning: detected OpenGL error 'invalid operation' after applying 
> GLMode 0xc11 
>
> 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. 
>
> Any ideas? Thanks! 
>
> Greetings, 
> Daniel 
> _______________________________________________ 
> osg-users mailing list 
> osg-... at lists.openscenegraph.org <javascript:> 
> 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+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/8907ae48-d94d-4fd3-bf0f-872da9b82bc2%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200325/8fcb4cd0/attachment.html>


More information about the osg-users mailing list