-
Notifications
You must be signed in to change notification settings - Fork 4
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
MacOS Cocoa Error: "Regular windows do not have icons on macOS" #8
Comments
Hi! |
Ahh seems it was 2 separate errors. Skipping the icon setting for PLATFORM_MACOS removed the GLFW error but the ImGui error remains.
This is the referenced function in the ImGui dependency, in void ImGui_ImplOpenGL3_NewFrame()
{
ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData();
IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplOpenGL3_Init()?");
if (!bd->ShaderHandle)
ImGui_ImplOpenGL3_CreateDeviceObjects();
} |
I found this issue which indicates macOS has stricter requirements for the OpenGL context version. This example from ImGui uses a different OpenGL version and sets different GLFW window hints on macOS. You could try something similar to see if it fixes the problem. |
Update.
static int open_libgl(void)
{
libgl = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL", RTLD_LAZY | RTLD_LOCAL);
if (!libgl)
return GL3W_ERROR_LIBRARY_OPEN;
return GL3W_OK;
} Turns out I don't have this filepath. Newer macOS seems to have shifted OpenGLs location around and even maybe require XCode as a dependency...? Might be a solution here. I tried just plugging in paths where I do have a framework folder, but no luck and I'm not really sure if the folder's contents have changed since, with regards to "OpenGL.framework/...". |
I don't understand how you even come to execute this code, this project uses glad to load OpenGL, so ImGui should not try to use its built-in OpenGL loader. I'm very confused. |
Hello,
I cloned this project recursively. After compiling and building, I am unable to open the app. I produced this error output when running from the terminal. I am on a Macbook 2019 15-inch with Intel chip, macOS Ventura 13.6.1
While there is an ImGuI failed assertion, I believe GLFW may be the primary culprit. I found a thread for a seperate project going more into depth into this macOS Cocoa error. LWJGL/lwjgl3#695
The text was updated successfully, but these errors were encountered: