-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
SDL2 + OPENGLES 2.0 Output a blank GUI #1922
Comments
Hello, It's difficult to tell what's wrong exactly. First, please start from the latest imgui version. Your version is very old and there's no reason to be using this old code if you are starting on a new project. We could provide a imgui_impl_gles.cpp renderer in replacement of imgui_impl_opengl3.cpp GLES3
to
It is difficult for me because I don't have access to GLES2 devices but I am sure many people have done that renderer loop change before. GLES2 This PR #336 based on an old version has GLES2 code Maybe only the shaders needs to be changed to:
Could you try with those shaders? |
Hello, |
A step toward the solution would be to start testing for GL errors. One possibility is to debug the ES 2 renderer on PC using https://github.com/google/angle I also don't know if SDL is conflicting somehow. I'll call in some people for advices. |
Hello,
I will try to use angle to test ES2. |
Hello,
|
I don't know what SDL2 needs. Each app in examples/ uses a different technology for creating a window and rendering. None of it depends on GUI platform interface, and core imgui.* files don't have any hard platform dependency. I think your problem is just a shader problem. You should try the more recent imgui_impl_opengl3.cpp which has support for most OpenGL variants and it now checks the shader compilation correctness. Older versions of that file didn't check that the shader compiled correctly, now we do. We those checks in you can debug the situation. Also check others ES discussions or pull requests: |
Hello,
`
would you please give me some advice or website link about imgui showing picture or 3d objects? |
Any updates on this? My OpenGLES2 instance is also running at around 32fps and I want it to be running at around 60 |
I use SDL2(v2.0.8) lib and OPENGLES 2.0 to test IMGUI,but I get an error output like follow(only a background without anything):
The project files are follow:
https://github.com/haorenhl007/imguitest
Please tell me what wrong with my codes.
Thanks to everyone!
The text was updated successfully, but these errors were encountered: