Module: Mesa Branch: main Commit: bdd8646306b0dad87747425812039e24da808b62 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdd8646306b0dad87747425812039e24da808b62
Author: Paul Gofman <[email protected]> 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
