Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash using RmlUi_Renderer_GL3 Backend #411

Closed
Manvin1 opened this issue Feb 9, 2023 · 1 comment
Closed

Crash using RmlUi_Renderer_GL3 Backend #411

Manvin1 opened this issue Feb 9, 2023 · 1 comment
Labels
backends Platforms and renderers

Comments

@Manvin1
Copy link

Manvin1 commented Feb 9, 2023

In my environment (SDL2 and OpenGL) the RenderInterface_GL3::RenderCompiledGeometry
(in https://github.com/mikke89/RmlUi/blob/master/Backends/RmlUi_Renderer_GL3.cpp) leads to crash because the Vertex Array is not unbind after the draw and, in my case, the ambient binds the Vertex Array and the Element Buffer constantly.

Unbinding the Vertex after glDrawElements (line 448) solves the problem.

@mikke89 mikke89 added the backends Platforms and renderers label Feb 10, 2023
@mikke89
Copy link
Owner

mikke89 commented Feb 10, 2023

I agree it is safer to unbind the vertex array after use, so I went ahead with your suggested fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backends Platforms and renderers
Projects
None yet
Development

No branches or pull requests

2 participants