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 
> [email protected] <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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/8907ae48-d94d-4fd3-bf0f-872da9b82bc2%40googlegroups.com.

Reply via email to