From 986921cc9ca0ddb255e70a504977989c85657f17 Mon Sep 17 00:00:00 2001 From: Josh Pearson Date: Thu, 9 Jan 2025 14:06:57 -0700 Subject: [PATCH] Preserve low res textures Any texture less than 64x64 keep original size. Improves building LOD texture quality, and doesn't blow VRAM budget --- vendor/librw/src/dc/rwdc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/librw/src/dc/rwdc.cpp b/vendor/librw/src/dc/rwdc.cpp index a77fa8ed..c2f794b5 100644 --- a/vendor/librw/src/dc/rwdc.cpp +++ b/vendor/librw/src/dc/rwdc.cpp @@ -3887,19 +3887,19 @@ imageFindRasterFormat(Image *img, int32 type, ; if(downsampleMode >= HALF) { - if(height / 2 >= 16) { + if(height / 2 >= 64) { height /= 2; } - if(width / 2 >= 16) { + if(width / 2 >= 64) { width /= 2; } } if(downsampleMode >= QUARTER) { - if(height / 2 >= 16) { + if(height / 2 >= 32) { height /= 2; } - if(width / 2 >= 16) { + if(width / 2 >= 32) { width /= 2; } }