From 06d1f5785153cd57c0e6b289f587adca67859714 Mon Sep 17 00:00:00 2001 From: salh Date: Sat, 18 Apr 2026 00:12:09 +0300 Subject: [PATCH] Fix undefined reference to FLAGS_vfetch_index_rounding_bias on Linux --- thirdparty/rexglue-sdk/src/graphics/flags.cpp | 3 +++ .../src/graphics/pipeline/shader/dxbc_translator_fetch.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/thirdparty/rexglue-sdk/src/graphics/flags.cpp b/thirdparty/rexglue-sdk/src/graphics/flags.cpp index 82fb8b97..19b986d6 100644 --- a/thirdparty/rexglue-sdk/src/graphics/flags.cpp +++ b/thirdparty/rexglue-sdk/src/graphics/flags.cpp @@ -28,6 +28,9 @@ REXCVAR_DEFINE_STRING(dump_shaders, "", "GPU", "Path to dump shaders to"); REXCVAR_DEFINE_BOOL(use_fuzzy_alpha_epsilon, true, "GPU", "Use approximate compare for alpha test values to prevent " "flickering on NVIDIA graphics cards"); +REXCVAR_DEFINE_BOOL(vfetch_index_rounding_bias, false, "GPU/Shader", + "Apply small epsilon bias to vertex fetch indices before " + "flooring to fix black triangles caused by RCP precision"); REXCVAR_DEFINE_BOOL(gpu_debug_markers, false, "GPU", "Insert debug markers into GPU command streams for tools " "like PIX and RenderDoc. Automatically enabled when " diff --git a/thirdparty/rexglue-sdk/src/graphics/pipeline/shader/dxbc_translator_fetch.cpp b/thirdparty/rexglue-sdk/src/graphics/pipeline/shader/dxbc_translator_fetch.cpp index dac21472..31842c0c 100644 --- a/thirdparty/rexglue-sdk/src/graphics/pipeline/shader/dxbc_translator_fetch.cpp +++ b/thirdparty/rexglue-sdk/src/graphics/pipeline/shader/dxbc_translator_fetch.cpp @@ -26,9 +26,6 @@ REXCVAR_DEFINE_BOOL(draw_resolution_scaled_texture_offsets, true, "GPU/Shader", "Scale texture offsets with draw resolution"); -REXCVAR_DEFINE_BOOL(vfetch_index_rounding_bias, false, "GPU/Shader", - "Apply small epsilon bias to vertex fetch indices before " - "flooring to fix black triangles caused by RCP precision"); namespace rex::graphics { using namespace ucode;