File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,14 @@ CPEDef::~CPEDef()
4545void CPEDef::CreateShader ()
4646{
4747 if (*m_ShaderName && *m_TextureName)
48+ {
49+ #ifdef LINUX
50+ while (char * sep = strchr (*m_ShaderName, ' \\ ' )) *sep = ' /' ;
51+ while (char * sep = strchr (*m_TextureName, ' \\ ' )) *sep = ' /' ;
52+ #endif
53+
4854 m_CachedShader.create (*m_ShaderName, *m_TextureName);
55+ }
4956}
5057void CPEDef::DestroyShader () { m_CachedShader.destroy (); }
5158void CPEDef::SetName (LPCSTR name) { m_Name = name; }
Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ void CResourceManager::OnDeviceCreate(IReader* F)
103103 }
104104 else
105105 {
106+ #ifdef LINUX
107+ while (char * sep = strchr (desc.cName , ' \\ ' )) *sep = ' /' ;
108+ #endif
106109 if (B->getDescription ().version != desc.version )
107110 {
108111 Msg (" ! Version conflict in shader '%s'" , desc.cName );
You can’t perform that action at this time.
0 commit comments