From 3b56e337c08a1dd4946c226298011364c319c7a2 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Thu, 10 Apr 2025 13:35:47 -0700 Subject: [PATCH] Build fixes for linux and possibly macOS --- lib/dolphin/gx/GXTexture.cpp | 2 +- lib/gfx/texture_convert.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dolphin/gx/GXTexture.cpp b/lib/dolphin/gx/GXTexture.cpp index d00558a..8ad1ab9 100644 --- a/lib/dolphin/gx/GXTexture.cpp +++ b/lib/dolphin/gx/GXTexture.cpp @@ -212,7 +212,7 @@ void GXInitTlutObj(GXTlutObj* obj_, const void* data, GXTlutFmt format, u16 entr auto* obj = reinterpret_cast(obj_); obj->ref = aurora::gfx::new_static_texture_2d( entries, 1, 1, texFmt, aurora::ArrayRef{static_cast(data), static_cast(entries) * 2}, - "GXInitTlutObj"); + true, "GXInitTlutObj"); } void GXLoadTlut(const GXTlutObj* obj_, GXTlut idx) { diff --git a/lib/gfx/texture_convert.cpp b/lib/gfx/texture_convert.cpp index aa33607..6148ea9 100644 --- a/lib/gfx/texture_convert.cpp +++ b/lib/gfx/texture_convert.cpp @@ -90,7 +90,7 @@ concept TextureDecoder = requires(T) { template static ByteBuffer DecodeTiled(uint32_t width, uint32_t height, uint32_t mips, ArrayRef data) { const size_t texelCount = ComputeMippedTexelCount(width, height, mips); - ByteBuffer buf{texelCount * sizeof(T::Target)}; + ByteBuffer buf{texelCount * sizeof(typename T::Target)}; uint32_t w = width; uint32_t h = height; @@ -127,7 +127,7 @@ static ByteBuffer DecodeTiled(uint32_t width, uint32_t height, uint32_t mips, Ar template static ByteBuffer DecodeLinear(uint32_t width, ArrayRef data) { - ByteBuffer buf{width * sizeof(T::Target)}; + ByteBuffer buf{width * sizeof(typename T::Target)}; auto* target = reinterpret_cast(buf.data()); const auto* in = reinterpret_cast(data.data()); for (uint32_t x = 0; x < width; ++x) {