fbecir
1
Hello
My application uses a window with OpenGL in order to display 3D data :
https://youtu.be/tcWnZFMmMoA?si=vBce3eOcnOUQuIeI&t=78
It was working fine with JUCE 8 and JUCE 9.0.0, but now with JUCE 9.0.2 I have problems with MacOSX and Linux (my code did not change).
In the window, the application draws a bouton, this bouton displays a component (drawn in the paint function). With JUCE 9.0.0, everything is fine :
Now with JUCE 9.0.2 on MacOS and Linux, the component is drawn incorrectly :
And it is not possible to use the sliders or the check boxes :
But on Windows, it’s still working perfectly.
Any idea ?
t0m
2
Can you please provide some sample code? Is there a specific commit that causes the bug?
fbecir
3
Yes of course, all the OpenGL code is here :
Thanks a lot for your help !
t0m
4
Can you try adding
OpenGLHelpers::resetErrorState();
after JUCE_CHECK_OPENGL_ERROR at the top of static bool tryAllocTexture (int w, int h, GLenum type)?
I think your code is producing a GL error state, and then we’re not clearing the state before checking it again.
2 Likes
fbecir
5
It works !!!
I am genuinely amazed at the speed with which you found the error. 
Now I have to find where my code produces the error I need to clear. Thanks a lot for your help
t0m
6
I helps a lot when you are the one that recently changed that bit of code…
4 Likes