Procházet zdrojové kódy

Merge pull request #83 from capnlove/TextureManager_Fix

Replaced call to makeFullPathName to expandPath
Simon Love před 12 roky
rodič
revize
ea7f6462ec
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      engine/source/graphics/TextureManager.cc

+ 1 - 1
engine/source/graphics/TextureManager.cc

@@ -891,7 +891,7 @@ TextureObject *TextureManager::loadTexture(const char* pTextureKey, TextureHandl
 GBitmap *TextureManager::loadBitmap( const char* pTextureKey, bool recurse, bool nocompression )
 GBitmap *TextureManager::loadBitmap( const char* pTextureKey, bool recurse, bool nocompression )
 {
 {
     char fileNameBuffer[512];
     char fileNameBuffer[512];
-    Platform::makeFullPathName( pTextureKey, fileNameBuffer, 512 );
+    Con::expandPath( fileNameBuffer, sizeof(fileNameBuffer), pTextureKey );
     GBitmap *bmp = NULL;
     GBitmap *bmp = NULL;
 
 
     // Loop through the supported extensions to find the file.
     // Loop through the supported extensions to find the file.