Skip to content

Commit

Permalink
GL_TEXTURE: Compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
meag committed Jun 1, 2016
1 parent d653607 commit 366c7f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gl_texture.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ byte *GL_LoadImagePixels (const char *filename, int matchwidth, int matchheight,
continue;

snprintf (name, sizeof (name), "%s.%s", basename, formats[i].extension);
if (file = FS_OpenVFS (name, "rb", FS_ANY)) {
if ((file = FS_OpenVFS (name, "rb", FS_ANY))) {
if (f == NULL || (f->copyprotected && !file->copyprotected)) {
if (f) {
VFS_CLOSE (f);
Expand All @@ -773,7 +773,7 @@ byte *GL_LoadImagePixels (const char *filename, int matchwidth, int matchheight,
if (best && f) {
CHECK_TEXTURE_ALREADY_LOADED;
snprintf (name, sizeof (name), "%s.%s", basename, best->extension);
if (data = best->function (f, name, matchwidth, matchheight, real_width, real_height)) {
if ((data = best->function (f, name, matchwidth, matchheight, real_width, real_height))) {
return data;
}
}
Expand Down

0 comments on commit 366c7f2

Please sign in to comment.