[turbine] Fix GLFWimage member init order
Some checks are pending
Build / build (push) Waiting to run
Some checks are pending
Build / build (push) Waiting to run
This commit is contained in:
parent
a521887ddd
commit
b9a26ab61e
@ -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::Error setWindowIcon(Context &ctx, ox::SpanView<uint8_t> iconPng) noexcept {
|
||||||
OX_REQUIRE_M(icon, toGlfwImgPixels(iconPng));
|
OX_REQUIRE_M(icon, toGlfwImgPixels(iconPng));
|
||||||
GLFWimage const img {
|
GLFWimage const img {
|
||||||
.pixels = icon.pixels.data(),
|
|
||||||
.width = icon.w,
|
.width = icon.w,
|
||||||
.height = icon.h,
|
.height = icon.h,
|
||||||
|
.pixels = icon.pixels.data(),
|
||||||
};
|
};
|
||||||
glfwSetWindowIcon(ctx.window, 1, &img);
|
glfwSetWindowIcon(ctx.window, 1, &img);
|
||||||
return {};
|
return {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user