-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
OpenGL rendering issues (was: Problem with fonts) #1459
Comments
Hard to say.
Are you using the stock rendering code from the opengl3 example? It should just work if you copy and paste the render code.
You can use graphics debugger like RenderDoc to figures out whats wrong.
PS: please use github image attachments inside of transient external links, so that the issues are useful for future readers.
|
If you use modern opengl in your code (aka anything with shaders) you shouldn’t use the opengl2 rendering path, it’ll just be a minefield. That’s explained pretty much in the header of every opengl files and the examples readme and the getting started section (’m not sure what I can do other than deleting this code or calling the folder “legacy” ?)
|
Agreed, but my host application where I'm integrating imgui supports only OpenGL 2.1. |
Fair! |
Will try it for sure. Thanks for the tip. |
@hateom Hello! Any progress on it? The last screenshot, could it be a problem with your backface culling setup? |
Hey, I stopped the project for now. I can only report that when using OpenGL 3.3 everything works fine. Will try to see if there's a way to switch from 2.1 to 3+. |
Just to give feedback - it was a problem with the OpenGL 2 example implementation. |
Would be interested in details if you remember them. You mention replacing glBindVertexArray with glBindVertexArrayAPPLE, but the problem above was when using imgui_impl_opengl2.cpp which doesn't use this function. GL cross-platform compatibility and examples is still a tedious mess, sorry this is getting me grumpy so often :( Any extra data point is helpful at least we have records. |
I took the opengl3 example (from that point in time where it had only GLSL 330 shaders) and rewritten them to 120 + replaced the VAO functions with APPLE extensions. So possibly the issue has been resolved since then. I will grab the latest opengl3 example and see if it works. |
Closing as dangling random backend issue, may or not be resolved or applicable. |
I managed to integrate the ImGui in my custom OpenGL platform, but I can't get the fonts to render properly. Can you please point me in the right direction?
This is what I see when I try to use the demo in my environment:
https://www.dropbox.com/s/btjcevq6zqxw8dq/imgui_problem.png?dl=0
The text was updated successfully, but these errors were encountered: