game: move pc-encode-utf8-string to common kmachine code (#3742)

Also adds formatter rules for a couple of macros.
This commit is contained in:
Hat Kid
2024-11-03 01:28:48 +01:00
committed by GitHub
parent ba9085fee0
commit 10d7dabfd7
8 changed files with 53 additions and 17 deletions
+1 -1
View File
@@ -577,7 +577,7 @@ void setup_alpha_from_material(const tinygltf::Material& material, DrawMode* mod
void setup_draw_mode_from_sampler(const tinygltf::Sampler& sampler, DrawMode* mode) {
if (sampler.magFilter == TINYGLTF_TEXTURE_FILTER_NEAREST) {
ASSERT(sampler.minFilter == TINYGLTF_TEXTURE_FILTER_NEAREST);
ASSERT(sampler.minFilter == TINYGLTF_TEXTURE_FILTER_NEAREST_MIPMAP_NEAREST);
mode->set_filt_enable(false);
} else {
ASSERT(sampler.minFilter != TINYGLTF_TEXTURE_FILTER_NEAREST);