MacOS M1 ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile vertex shader! With GLSL: #version 130 #6460
Replies: 2 comments 1 reply
-
I tried copying the example_glfw_opengl3 example code in to my main.cpp and after adding "backend/" to the includes, it worked! #include "backends/imgui_impl_glfw.h" Can remain as in the example, eg : #include "imgui_impl_glfw.h" Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Ok, Confirmed the offending line was :- |
Beta Was this translation helpful? Give feedback.
-
Hi there, I'm new to c++ and imgui. Thanks in advance for any help you can provide!
I managed to get this working on windows, but I'm having trouble on osx (M1, VScode, cmake).
The example repo I'm using is here : https://github.com/Bktero/HelloWorldWithDearImGui
I update cmakelists.txt to latest versions of glew(glew-cmake-2.2.0) and glfw (3.3.8). (see bottom of post for code). This resolved an issue that prevented the opengl window from opening.
I've installed glew and glfw with brew.
I've updated main.cpp with glfWindowHint calls to support macos :
"""
"""
Env info :
oepngl shader version: 4.1
4.1 Metal - 83
When the app runs, I get a blank opengl window with the following output :
"""
"""
CMakeLists.txt
"""
"""
main.cpp
"""
"""
Beta Was this translation helpful? Give feedback.
All reactions