Skip to content

Commit 8b2a7fa

Browse files
committed
xrRenderGL: fix gl texture loading on linux
1 parent 4885545 commit 8b2a7fa

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
@@ -278,6 +278,9 @@ void CTexture::Load()
278278
{
279279
// Load another texture
280280
u32 mem = 0;
281+
#ifdef LINUX
282+
while (char* sep = strchr(buffer, '\\')) *sep = '/';
283+
#endif
281284
pSurface = RImplementation.texture_load(buffer, mem, desc);
282285
if (pSurface)
283286
{

0 commit comments

Comments
 (0)