Browse Source

stb_image: fix unused parameter

Ronny Chevalier 11 năm trước cách đây
mục cha
commit
b8b6e7c31a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      stb_image.h

+ 2 - 2
stb_image.h

@@ -578,10 +578,10 @@ FILE *stbi__fopen(char const *filename, char const *mode)
 {
    FILE *f;
 #if defined(_MSC_VER) && _MSC_VER >= 1400
-   if (0 != fopen_s(&f, filename, "rb"))
+   if (0 != fopen_s(&f, filename, mode))
       f=0;
 #else
-   f = fopen(filename, "rb");
+   f = fopen(filename, mode);
 #endif
    return f;
 }