From 08dd3c3d6dba652fd678941286bb9c0132dd9522 Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Tue, 16 Sep 2025 20:12:27 -0400
Subject: feat: add enable zink toggle for openGL compat

---
 src/components/ConfigurationSection.tsx | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'src/components/ConfigurationSection.tsx')

diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx
index 094cb02..9afc650 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -6,7 +6,7 @@ import { FpsMultiplierControl } from "./FpsMultiplierControl";
 import {
   NO_FP16, FLOW_SCALE, PERFORMANCE_MODE, HDR_MODE,
   EXPERIMENTAL_PRESENT_MODE, DXVK_FRAME_RATE, DISABLE_STEAMDECK_MODE,
-  MANGOHUD_WORKAROUND, DISABLE_VKBASALT, FORCE_ENABLE_VKBASALT, ENABLE_WSI
+  MANGOHUD_WORKAROUND, DISABLE_VKBASALT, FORCE_ENABLE_VKBASALT, ENABLE_WSI, ENABLE_ZINK
 } from "../config/generatedConfigSchema";
 
 interface ConfigurationSectionProps {
@@ -221,6 +221,15 @@ export function ConfigurationSection({
               }}
             />
           </PanelSectionRow>
+
+          <PanelSectionRow>
+            <ToggleField
+              label="Enable Zink for OpenGL Games"
+              description="Use Vulkan-based OpenGL implementation for OpenGL games (may cause crashes or freezes with some games)"
+              checked={config.enable_zink}
+              onChange={(value) => onConfigChange(ENABLE_ZINK, value)}
+            />
+          </PanelSectionRow>
         </>
       )}
     </>
-- 
cgit v1.2.3

