Skip to content

Commit

Permalink
xrRender: fix model loading on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Nov 6, 2018
1 parent e9a54c6 commit c569c37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Layers/xrRender/ModelPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ dxRender_Visual* CModelPool::Create(const char* name, IReader* data)
string_path low_name;
VERIFY(xr_strlen(name) < sizeof(low_name));
xr_strcpy(low_name, name);
#ifdef LINUX
while (char* sep = strchr(low_name, '\\')) *sep = '/';
#endif
xr_strlwr(low_name);
if (strext(low_name))
*strext(low_name) = 0;
Expand Down

0 comments on commit c569c37

Please sign in to comment.