Revert "client: Update stb_image_resize"

This reverts commit a08a8d35e1.

Fix visual glitches on texture edges in soft render.
This commit is contained in:
Denis Pauk 2023-12-27 18:21:36 +02:00
parent 985fa68b97
commit 22d36d6bfe
4 changed files with 2638 additions and 10307 deletions

View File

@ -682,7 +682,7 @@ set(SOFT-Source
set(SOFT-Header
${REF_SRC_DIR}/ref_shared.h
${REF_SRC_DIR}/files/stb_image.h
${REF_SRC_DIR}/files/stb_image_resize2.h
${REF_SRC_DIR}/files/stb_image_resize.h
${REF_SRC_DIR}/soft/header/local.h
${REF_SRC_DIR}/soft/header/model.h
${COMMON_SRC_DIR}/header/shared.h

View File

@ -45,7 +45,7 @@
// include resize implementation
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "stb_image_resize2.h"
#include "stb_image_resize.h"
/*
* Add extension to file name
@ -108,8 +108,8 @@ qboolean
ResizeSTB(const byte *input_pixels, int input_width, int input_height,
byte *output_pixels, int output_width, int output_height)
{
if (stbir_resize_uint8_linear(input_pixels, input_width, input_height, 0,
output_pixels, output_width, output_height, 0, STBIR_RGBA))
if (stbir_resize_uint8(input_pixels, input_width, input_height, 0,
output_pixels, output_width, output_height, 0, 4))
{
return true;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff