Skip to content

Commit 51c0846

Browse files
committed
xrRenderPC_GL: fix texture loading
1 parent a71821b commit 51c0846

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Layers/xrRenderPC_GL/glResourceManager_Resources.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ CTexture* CResourceManager::_CreateTexture(LPCSTR _Name)
512512
R_ASSERT (_Name && _Name[0]);
513513
string_path Name;
514514
strcpy_s(Name, _Name); //. andy if (strext(Name)) *strext(Name)=0;
515+
#ifdef LINUX
516+
while (char* sep = strchr(Name, '\\')) *sep = '/';
517+
#endif
518+
515519
fix_texture_name(Name);
516520

517521
#ifdef DEBUG

0 commit comments

Comments
 (0)