Skip to content

Commit 29348f1

Browse files
committed
xrRenderGL: Replace '\'->'/' when loading textures
1 parent 13d0b2c commit 29348f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Layers/xrRenderGL/glSH_Texture.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ void CTexture::Load()
174174

175175
// Check for OGM
176176
string_path fn;
177+
#ifdef LINUX
178+
while (char* sep = strchr(*cName, '\\')) *sep = '/';
179+
#endif
177180
if (FS.exist(fn, "$game_textures$", *cName, ".ogm"))
178181
{
179182
// AVI

0 commit comments

Comments
 (0)