I made a PR prefering a new bool in TextureObject to the glGetTexParameter 
solution. However, this solution breaks binary compatibility...

Le mercredi 25 mars 2020 22:25:45 UTC+1, julienvalentin51 a écrit :
>
> 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-...@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/0f56477c-7114-4956-b359-f694f6da180a%40googlegroups.com.

Reply via email to