mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-30 00:20:59 +00:00
Merge branch 'master' into sdl2
This commit is contained in:
commit
ed087bb89e
320 changed files with 18335 additions and 9574 deletions
|
@ -37,8 +37,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include <jpeglib.h>
|
||||
|
||||
#ifndef USE_INTERNAL_JPEG
|
||||
# if JPEG_LIB_VERSION < 80
|
||||
# error Need system libjpeg >= 80
|
||||
# if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED)
|
||||
# error Need system libjpeg >= 80 or jpeg_mem_ support
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -2274,7 +2274,7 @@ void R_LoadPNG(const char *name, byte **pic, int *width, int *height)
|
|||
{
|
||||
case PNG_ColourType_Grey :
|
||||
{
|
||||
if(!ChunkHeaderLength == 2)
|
||||
if(ChunkHeaderLength != 2)
|
||||
{
|
||||
CloseBufferedFile(ThePNG);
|
||||
|
||||
|
@ -2296,7 +2296,7 @@ void R_LoadPNG(const char *name, byte **pic, int *width, int *height)
|
|||
|
||||
case PNG_ColourType_True :
|
||||
{
|
||||
if(!ChunkHeaderLength == 6)
|
||||
if(ChunkHeaderLength != 6)
|
||||
{
|
||||
CloseBufferedFile(ThePNG);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue