Bladeren bron

Change ShortStringHash to StringHash.

Aster@中国上海 11 jaren geleden
bovenliggende
commit
ad59ffa437
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      Source/Engine/Graphics/OpenGL/OGLTexture.cpp
  2. 1 1
      Source/Engine/Graphics/OpenGL/OGLTexture.h

+ 1 - 1
Source/Engine/Graphics/OpenGL/OGLTexture.cpp

@@ -491,7 +491,7 @@ unsigned Texture::GetSRGBFormat(unsigned format)
     #endif
 }
 
-void Texture::CheckTextureBudget(ShortStringHash type)
+void Texture::CheckTextureBudget(StringHash type)
 {
     ResourceCache* cache = GetSubsystem<ResourceCache>();
     unsigned textureBudget = cache->GetMemoryBudget(type);

+ 1 - 1
Source/Engine/Graphics/OpenGL/OGLTexture.h

@@ -125,7 +125,7 @@ public:
     
 protected:
     /// Check whether texture memory budget has been exceeded. Free unused materials in that case to release the texture references.
-    void CheckTextureBudget(ShortStringHash type);
+    void CheckTextureBudget(StringHash type);
     /// Create texture.
     virtual bool Create() { return true; }