Merge pull request #54 from Ybalrid/fix_msvc_build_usage

Fix MSVC build: removing static keyowrd befor tinygltf::LoadImageData
This commit is contained in:
Syoyo Fujita 2018-03-20 10:36:26 +09:00 committed by GitHub
commit 3f1c5a90d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -732,7 +732,7 @@ typedef bool (*LoadImageDataFunction)(Image *, std::string *, int, int,
#ifndef TINYGLTF_NO_STB_IMAGE
// Declaration of default image loader callback
static bool LoadImageData(Image *image, std::string *err, int req_width,
bool LoadImageData(Image *image, std::string *err, int req_width,
int req_height, const unsigned char *bytes, int size,
void *);
#endif
@ -1197,7 +1197,7 @@ void TinyGLTF::SetImageLoader(LoadImageDataFunction func, void *user_data) {
}
#ifndef TINYGLTF_NO_STB_IMAGE
static bool LoadImageData(Image *image, std::string *err, int req_width,
bool LoadImageData(Image *image, std::string *err, int req_width,
int req_height, const unsigned char *bytes, int size,
void *) {
int w, h, comp;