X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FOpenGL_Windows.cpp;h=4c8326915dc57cb5e63dc1cd1fd4d9eed69c2ff5;hb=58c57bae7b771002066636f0e2d2e93f185dd4eb;hp=9d709dbc2685a0aa58e2feb7c00fe199997a5170;hpb=99d73d380e7376505a4033813d5d560ebaea05d1;p=lugaru.git diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index 9d709db..4c83269 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -2679,10 +2679,6 @@ static bool load_png(const char *file_name, TGAImageRec &tex) if (!row_pointers) goto png_done; - retval = malloc(width * height * 4); - if (!retval) - goto png_done; - if (!hasalpha) { png_byte *dst = tex.data;