Skip to content

Commit

Permalink
xrRenderPC_GL: fix texture loading
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Nov 6, 2018
1 parent a71821b commit 51c0846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Layers/xrRenderPC_GL/glResourceManager_Resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,10 @@ CTexture* CResourceManager::_CreateTexture(LPCSTR _Name)
R_ASSERT (_Name && _Name[0]);
string_path Name;
strcpy_s(Name, _Name); //. andy if (strext(Name)) *strext(Name)=0;
#ifdef LINUX
while (char* sep = strchr(Name, '\\')) *sep = '/';
#endif

fix_texture_name(Name);

#ifdef DEBUG
Expand Down

0 comments on commit 51c0846

Please sign in to comment.