added some missing CAP_SDL and CAP_GL guards

This commit is contained in:
Zeno Rogue committed 2021-05-23 16:00:49 +02:00
1 parent 8678a2f77f
commit e78a170e7e
6 files changed
+49 -7

No files matched your search

+4
View File
@@ -1920,7 +1920,9 @@ EX void add_edit_fov(char key IS('f'), bool pop IS(false)) {
"a quick implementation, so parameter values too close to 1 may "
"be buggy (outside of raycasting); try e.g. 0.9 instead.")
);
#if CAP_GL
dialog::reaction = reset_all_shaders;
#endif
dialog::extra_options = [] {
add_edit_fov('F', true);
};
@@ -1935,7 +1937,9 @@ EX void add_edit_fov(char key IS('f'), bool pop IS(false)) {
"a quick implementation, so parameter values too close to 1 may "
"be buggy (outside of raycasting); try e.g. 0.9 instead.")
);
#if CAP_GL
dialog::reaction = reset_all_shaders;
#endif
dialog::extra_options = [] {
add_edit_fov('F', true);
};