Mesa (main): util: add force_gl_names_reuse for SWKOTOR.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 22 22:11:51 UTC 2021


Module: Mesa
Branch: main
Commit: bdd8646306b0dad87747425812039e24da808b62
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdd8646306b0dad87747425812039e24da808b62

Author: Paul Gofman <pgofman at codeweavers.com>
Date:   Tue Jun 22 18:01:51 2021 +0300

util: add force_gl_names_reuse for SWKOTOR.

SWKOTOR is expecting texture names generated by glGenTextures() to
be small enough and crashes otherwise.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11527>

---

 src/util/00-mesa-defaults.conf | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf
index cdc498ba065..3839dea5053 100644
--- a/src/util/00-mesa-defaults.conf
+++ b/src/util/00-mesa-defaults.conf
@@ -626,6 +626,14 @@ TODO: document the other workarounds.
             <option name="glsl_correct_derivatives_after_discard" value="true" />
         </application>
 
+        <!-- Workaround for STAR WARS: Knights of the Old Republic relying on
+             non-specified OpenGL behavior (expecting texture names to be
+             small enough to fit in the static array).
+          -->
+        <application name="SWKOTOR (wine)" executable="swkotor.exe">
+            <option name="force_gl_names_reuse" value="true"/>
+        </application>
+
         <!-- Vulkan workarounds: -->
 
         <!-- Works around the game not starting (does not deal with



More information about the mesa-commit mailing list