J :
* Un-revert compiling fixes
This commit is contained in:
@@ -31,6 +31,7 @@ struct Options {
|
|||||||
static const string ACTIVE_PROFILE;
|
static const string ACTIVE_PROFILE;
|
||||||
static const string ACTIVE_THEME;
|
static const string ACTIVE_THEME;
|
||||||
static const string ACTIVE_MODE;
|
static const string ACTIVE_MODE;
|
||||||
|
static const string HANDMODE;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Metrics {
|
struct Metrics {
|
||||||
|
|||||||
@@ -2,6 +2,12 @@
|
|||||||
#define _WCACHEDRESOURCE_H_
|
#define _WCACHEDRESOURCE_H_
|
||||||
#include <hge/hgeparticle.h>
|
#include <hge/hgeparticle.h>
|
||||||
|
|
||||||
|
#if defined WIN32 || defined LINUX
|
||||||
|
#define INVALID_MTEX ((GLuint) -1)
|
||||||
|
#else
|
||||||
|
#define INVALID_MTEX -1
|
||||||
|
#endif
|
||||||
|
|
||||||
class WResource{
|
class WResource{
|
||||||
public:
|
public:
|
||||||
friend class WResourceManager;
|
friend class WResourceManager;
|
||||||
@@ -92,4 +98,4 @@ protected:
|
|||||||
JSample * sample;
|
JSample * sample;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ bool WCachedTexture::Attempt(string filename, int submode, int & error){
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Failure of a different sort.
|
//Failure of a different sort.
|
||||||
if(texture->mTexId == -1){
|
if(texture->mTexId == INVALID_MTEX){
|
||||||
SAFE_DELETE(texture);
|
SAFE_DELETE(texture);
|
||||||
error = CACHE_ERROR_BAD;
|
error = CACHE_ERROR_BAD;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -417,7 +417,7 @@ JTexture* WResourceManager::GetTexture(int id){
|
|||||||
for(it = textureWCache.managed.begin();it!= textureWCache.managed.end(); it++){
|
for(it = textureWCache.managed.begin();it!= textureWCache.managed.end(); it++){
|
||||||
if(it->second){
|
if(it->second){
|
||||||
jtex = it->second->Actual();
|
jtex = it->second->Actual();
|
||||||
if(jtex->mTexId == id)
|
if(id == (int) jtex->mTexId)
|
||||||
return jtex;
|
return jtex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1391,4 +1391,4 @@ bool WCache<cacheItem, cacheActual>::Release(cacheActual* actual){
|
|||||||
//Released!
|
//Released!
|
||||||
cache.erase(it);
|
cache.erase(it);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user