Enable stb libraries for image loading. This was disabled by error.
This commit is contained in:
parent
5c70ffef0b
commit
95f1f60490
@ -2,21 +2,21 @@
|
||||
#define NV_CONFIG
|
||||
|
||||
//#cmakedefine HAVE_UNISTD_H
|
||||
#define HAVE_STDARG_H
|
||||
//#define HAVE_STDARG_H
|
||||
//#cmakedefine HAVE_SIGNAL_H
|
||||
//#cmakedefine HAVE_EXECINFO_H
|
||||
#define HAVE_MALLOC_H
|
||||
//#define HAVE_MALLOC_H
|
||||
|
||||
#if defined(_OPENMP)
|
||||
#define HAVE_OPENMP
|
||||
#endif
|
||||
|
||||
#define HAVE_STBIMAGE
|
||||
#define NV_HAVE_STBIMAGE
|
||||
/*#if !defined(_M_X64)
|
||||
//#define HAVE_FREEIMAGE
|
||||
#define HAVE_PNG
|
||||
#define HAVE_JPEG
|
||||
#define HAVE_TIFF
|
||||
//#define NV_HAVE_FREEIMAGE
|
||||
#define NV_HAVE_PNG
|
||||
#define NV_HAVE_JPEG
|
||||
#define NV_HAVE_TIFF
|
||||
#endif*/
|
||||
|
||||
#endif // NV_CONFIG
|
||||
|
@ -634,7 +634,7 @@ bool Surface::load(const char * fileName, bool * hasAlpha/*= NULL*/)
|
||||
}
|
||||
|
||||
// @@ Have loadFloat allocate the image with the desired number of channels.
|
||||
//img->resizeChannelCount(4);
|
||||
img->resizeChannelCount(4); // Block compressors expect a 4 channel texture.
|
||||
|
||||
delete m->image;
|
||||
m->image = img.release();
|
||||
|
Loading…
Reference in New Issue
Block a user