-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
example_glfw_opengl3 doesn't display imgui content on OpenGL3.0 #1938
Comments
Could you try changing the GLSL version to #130 and/or querying the shader compilation steps for errors? |
Hello, @linaran : can you please comment the #if APPLE ... #endif in main.cpp ? Looks like you need the line
FYI, I got Linux (x86_64, Intel) here too. My new machine is OpenGL 4.5 capable, but I got the same issue when using 3.0. And commenting the lines above (#ifdef / #endif) makes it work as expected. HTH |
You can call `ImGui_ImplOpenGL3_Init("#version 130") to build with a different version. |
Let's start with at the begining. Can you post the full output of :
-B option gives a summary of the most important information returned by your graphic card driver. This will tell us what exactly you can expect with your machine. |
Okay I just cloned the latest commit from master. @ebachard
@ocornut
The same goes for the fragment shader and the linker failed as expected. I will be changing the version to GLSL1.30 per your instructions. |
@ocornut |
Thanks for the confirmation @linaran. I noticed that the shader works with 130 140 150 with the same context here, What's unclear to me is how good GL drivers are honoring compatibility with older GLSL versions than the one desired by the context.. |
I have pushed changes to the Examples+Bindings now. @linaran if you have a chance could you confirm that the unmodified repository now works with your configuration? Thanks! |
@ocornut I'm confirming that the unmodified repository works. Cheers! |
Excellent, closing this issue then! |
Version/Branch of Dear ImGui:
1.62 release
Back-end file/Renderer/OS:
Trying to use GLFW with OpenGL3 on Linaro Linux release 16.02. Dragonboard 410c came with that OS. Supported OpenGL by the driver is "OpenGL version string: 3.0 Mesa 18.0.3" (output from glxinfo).
My Issue/Question:
In short I don't see any imgui content (no window it's just simple blue color) when I run the example_glfw_opengl3 sample. Note that I modified the main.cpp. I changed the minor version to 0 (since my driver supports OpenGL3.0) and removed the glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE) line since OpenGL3.0 doesn't support profiles.
OpenGL2 examples and it's integration with my own code works fine. I'm just not having any luck with OpenGL3.0 (can't try OpenGL3.2). I read the documentation and searched through the issues and googled this issue but didn't find anything helpful. If this is a duplicate question I'll see to removing it.
Standalone, minimal, complete and verifiable example:
I marked the changes within main.cpp with 3 excalamation marks (!!!). Everything else is vanilla.
The text was updated successfully, but these errors were encountered: