chore(component): tweak return type for TextureCacheCreateTexture

This commit is contained in:
fallenoak committed 2025-10-18 15:47:07 -05:00
1 parent dcc1f26a29
commit 11ce4b168e
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ class CCharacterComponent {
uint32_t m_sections = 0xFFFFFFFF; uint32_t m_sections = 0xFFFFFFFF;
ComponentData m_data; ComponentData m_data;
HTEXTURE m_baseTexture = nullptr; HTEXTURE m_baseTexture = nullptr;
CACHEENTRY* m_texture[NUM_COMPONENT_VARIATIONS * 3] = {}; void* m_texture[NUM_COMPONENT_VARIATIONS * 3] = {};
// Member functions // Member functions
void CreateBaseTexture(); void CreateBaseTexture();
+1 -1
View File
@@ -30,7 +30,7 @@ CACHEENTRY* TextureCacheAllocEntry() {
return entry; return entry;
} }
CACHEENTRY* TextureCacheCreateTexture(const char* fileName) { void* TextureCacheCreateTexture(const char* fileName) {
auto hashval = SStrHash(fileName); auto hashval = SStrHash(fileName);
auto texture = s_cacheTable.Ptr(hashval, s_cacheKey); auto texture = s_cacheTable.Ptr(hashval, s_cacheKey);
+1 -1
View File
@@ -17,7 +17,7 @@ class CACHEENTRY : public TSHashObject<CACHEENTRY, HASHKEY_NONE> {
void AddRef(); void AddRef();
}; };
CACHEENTRY* TextureCacheCreateTexture(const char* fileName); void* TextureCacheCreateTexture(const char* fileName);
void TextureCacheDestroyTexture(void* texture); void TextureCacheDestroyTexture(void* texture);