[turbine] Disable useless window icon on Mac, it causes GLFW warning
All checks were successful
Build / build (push) Successful in 1m16s
All checks were successful
Build / build (push) Successful in 1m16s
This commit is contained in:
parent
8f03af99a7
commit
5169a607cf
@ -247,6 +247,7 @@ static ox::Result<IconData> toGlfwImgPixels(ox::SpanView<uint8_t> const &iconPng
|
|||||||
}
|
}
|
||||||
|
|
||||||
ox::Error setWindowIcon(Context &ctx, ox::SpanView<ox::SpanView<uint8_t>> const &iconPngs) noexcept {
|
ox::Error setWindowIcon(Context &ctx, ox::SpanView<ox::SpanView<uint8_t>> const &iconPngs) noexcept {
|
||||||
|
if constexpr(ox::defines::OS != ox::OS::Darwin) {
|
||||||
ox::Vector<IconData, 8> src;
|
ox::Vector<IconData, 8> src;
|
||||||
ox::Vector<GLFWimage, 8> imgs;
|
ox::Vector<GLFWimage, 8> imgs;
|
||||||
for (auto const &iconPng : iconPngs) {
|
for (auto const &iconPng : iconPngs) {
|
||||||
@ -259,6 +260,7 @@ ox::Error setWindowIcon(Context &ctx, ox::SpanView<ox::SpanView<uint8_t>> const
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
glfwSetWindowIcon(ctx.window, static_cast<int>(imgs.size()), imgs.data());
|
glfwSetWindowIcon(ctx.window, static_cast<int>(imgs.size()), imgs.data());
|
||||||
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user