[turbine] Fix GLFWimage member init order
Some checks are pending
Build / build (push) Waiting to run

This commit is contained in:
Gary Talent 2025-04-11 21:44:52 -05:00
parent a521887ddd
commit b9a26ab61e

View File

@ -249,9 +249,9 @@ static ox::Result<IconData> toGlfwImgPixels(ox::SpanView<uint8_t> iconPng) noexc
ox::Error setWindowIcon(Context &ctx, ox::SpanView<uint8_t> iconPng) noexcept {
OX_REQUIRE_M(icon, toGlfwImgPixels(iconPng));
GLFWimage const img {
.pixels = icon.pixels.data(),
.width = icon.w,
.height = icon.h,
.pixels = icon.pixels.data(),
};
glfwSetWindowIcon(ctx.window, 1, &img);
return {};