mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-25 12:21:29 +00:00
Revert "client: Update stb_image_resize"
This reverts commit a08a8d35e1
.
Fix visual glitches on texture edges in soft render.
This commit is contained in:
parent
985fa68b97
commit
22d36d6bfe
4 changed files with 2638 additions and 10307 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
2634
src/client/refresh/files/stb_image_resize.h
Normal file
2634
src/client/refresh/files/stb_image_resize.h
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue