Skip to content
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

fix(rendering): Don't try to set window icon on macOS #5066

Merged
merged 2 commits into from
Aug 22, 2022

Conversation

skaldarnar
Copy link
Member

Trying to set the window icon on macOS results in an exception since
glfw/glfw@9a87c2a.
This will be printed out as an error by our default handler for GLFW
errors.

However, we can easily prevent this by not attempting to use this
feature when running on macOS.

Trying to set the window icon on macOS results in an exception since
[glfw/glfw@9a87c2a](glfw/glfw@9a87c2a).
This will be printed out as an error by our default handler for GLFW
errors.

However, we can easily prevent this by not attempting to use this
feature when running on macOS.

+                // Not supported on Mac: Code: 65548, Description: Cocoa: Regular windows do not have icons on macOS
+                GLFW.glfwSetWindowIcon(window, buffer);
@skaldarnar skaldarnar added Topic: Rendering Requests, Issues and Changes related to lighting, meshes, camera, etc. Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness labels Aug 21, 2022
@github-actions github-actions bot added the Type: Bug Issues reporting and PRs fixing problems label Aug 21, 2022
@skaldarnar skaldarnar added the Size: S Small effort likely only affecting a single area and requiring little to no research label Aug 21, 2022
Copy link
Member

@keturn keturn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have OS X to test this on, but otherwise the code LGTM.

@keturn keturn merged commit 2785518 into develop Aug 22, 2022
@keturn keturn deleted the fix/guard-unsupported-glfw-feature-on-mac branch August 22, 2022 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: S Small effort likely only affecting a single area and requiring little to no research Topic: Rendering Requests, Issues and Changes related to lighting, meshes, camera, etc. Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness Type: Bug Issues reporting and PRs fixing problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants