aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/VkChess.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/VkChess.cs')
-rw-r--r--src/VkChess.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/VkChess.cs b/src/VkChess.cs
index 0aeab0f..de8f19f 100644
--- a/src/VkChess.cs
+++ b/src/VkChess.cs
@@ -107,7 +107,9 @@ namespace vkChess
#if PIPELINE_STATS
enabled_features.pipelineStatisticsQuery = available_features.pipelineStatisticsQuery;
#endif
- enabled_features.tessellationShader = available_features.tessellationShader;
+ if (!available_features.tessellationShader)
+ EnableTesselation = false;
+ enabled_features.tessellationShader = EnableTesselation;
}
#if PIPELINE_STATS
@@ -840,6 +842,15 @@ namespace vkChess
NotifyValueChanged ("SampleCount", value);
}
}
+ public bool EnableTesselation {
+ get => Configuration.Global.Get<bool> ("EnableTesselation", false);
+ set {
+ if (value == EnableTesselation)
+ return;
+ Configuration.Global.Set ("EnableTesselation", value);
+ NotifyValueChanged ("EnableTesselation", value);
+ }
+ }
public bool EnableReflections {
get => Configuration.Global.Get<bool> ("EnableReflections", false);
set {