mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
chore(component): tweak return type for TextureCacheCreateTexture
This commit is contained in:
parent
dcc1f26a29
commit
11ce4b168e
@ -64,7 +64,7 @@ class CCharacterComponent {
|
||||
uint32_t m_sections = 0xFFFFFFFF;
|
||||
ComponentData m_data;
|
||||
HTEXTURE m_baseTexture = nullptr;
|
||||
CACHEENTRY* m_texture[NUM_COMPONENT_VARIATIONS * 3] = {};
|
||||
void* m_texture[NUM_COMPONENT_VARIATIONS * 3] = {};
|
||||
|
||||
// Member functions
|
||||
void CreateBaseTexture();
|
||||
|
||||
@ -30,7 +30,7 @@ CACHEENTRY* TextureCacheAllocEntry() {
|
||||
return entry;
|
||||
}
|
||||
|
||||
CACHEENTRY* TextureCacheCreateTexture(const char* fileName) {
|
||||
void* TextureCacheCreateTexture(const char* fileName) {
|
||||
auto hashval = SStrHash(fileName);
|
||||
auto texture = s_cacheTable.Ptr(hashval, s_cacheKey);
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ class CACHEENTRY : public TSHashObject<CACHEENTRY, HASHKEY_NONE> {
|
||||
void AddRef();
|
||||
};
|
||||
|
||||
CACHEENTRY* TextureCacheCreateTexture(const char* fileName);
|
||||
void* TextureCacheCreateTexture(const char* fileName);
|
||||
|
||||
void TextureCacheDestroyTexture(void* texture);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user