mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-06 06:10:45 +00:00
Fix rare texture loading problems introduced in 8bd40be8aa
and f0d580d873
.
This commit is contained in:
parent
198f0353d5
commit
62c949f640
5 changed files with 29 additions and 32 deletions
|
@ -23,11 +23,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#include "Base.h"
|
||||
|
||||
|
||||
enum TextureLoadResult
|
||||
{
|
||||
TEX_FAILED = 0x00,
|
||||
TEX_SUCCESS = 0x01,
|
||||
TEX_LOADED = 0x02,
|
||||
TEX_FAILED,
|
||||
TEX_SUCCESS
|
||||
};
|
||||
|
||||
struct ImageTGA
|
||||
|
@ -81,6 +81,8 @@ public:
|
|||
|
||||
std::string name;
|
||||
|
||||
TextureLoadResult getLoadResult() const { return loadResult; }
|
||||
|
||||
protected:
|
||||
std::string loadName;
|
||||
|
||||
|
@ -91,6 +93,7 @@ protected:
|
|||
bool loadTGA(ImageTGA *tga);
|
||||
|
||||
int ow, oh;
|
||||
TextureLoadResult loadResult;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue