Fix TGA loading using FreeImage. Fixes issue 141.
This commit is contained in:
parent
2bd7db4244
commit
5d80fb8219
@ -345,6 +345,9 @@ static int DLL_CALLCONV SeekProc(fi_handle handle, long offset, int origin)
|
||||
case SEEK_SET :
|
||||
s->seek(offset);
|
||||
break;
|
||||
case SEEK_END :
|
||||
s->seek(s->size() + offset);
|
||||
break;
|
||||
case SEEK_CUR :
|
||||
s->seek(s->tell() + offset);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user