Skip to content

Commit c569c37

Browse files
committed
xrRender: fix model loading on linux
1 parent e9a54c6 commit c569c37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Layers/xrRender/ModelPool.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ dxRender_Visual* CModelPool::Create(const char* name, IReader* data)
219219
string_path low_name;
220220
VERIFY(xr_strlen(name) < sizeof(low_name));
221221
xr_strcpy(low_name, name);
222+
#ifdef LINUX
223+
while (char* sep = strchr(low_name, '\\')) *sep = '/';
224+
#endif
222225
xr_strlwr(low_name);
223226
if (strext(low_name))
224227
*strext(low_name) = 0;

0 commit comments

Comments
 (0)