From 84eadb824a1a327fe1bedacd7fd123f2fac720f2 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Wed, 22 Nov 2023 23:30:02 -0600 Subject: [PATCH] Avoid crash on AMD GPUs - Some cubemaps fail to render --- src/DDS/DDSFile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/DDS/DDSFile.py b/src/DDS/DDSFile.py index c624802..4d77f99 100644 --- a/src/DDS/DDSFile.py +++ b/src/DDS/DDSFile.py @@ -161,7 +161,10 @@ class DDSFile: if self.header.dwCaps2 & DDSDefinitions.DDS_HEADER.Caps2.DDSCAPS2_CUBEMAP: # Lisa hasn't whipped David Wang into shape yet. At least there are fewer bugs than under Raja. # The specific bug has been reported and AMD "will try to reproduce it soon" - noDSA = "Radeon" in gl.glGetString(gl.GL_RENDERER) and self.glFormat.compressed + # MO 2.5.0: Radeon-specific code is causing crashing on the latest drivers + # Some cubemaps fail to render with or without these modifications + # noDSA = "Radeon" in gl.glGetString(gl.GL_RENDERER) and self.glFormat.compressed + noDSA = False if noDSA: texture.bind() faceIndex = 0