Skip to content

Commit 76db472

Browse files
fix compilation break if project configured without opengl (atari800#253)
1 parent fcb6e79 commit 76db472

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ui.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,7 +2534,11 @@ static void CrtGlowSliderLabel(char *label, int value, void *user_data) {
25342534
static void show_hide_crt_options(UI_tMenuItem menu_array[]) {
25352535
// hide/show options that require hardware renderer (and shaders)
25362536
for (int index = 19; index <= 21; ++index) {
2537+
#if HAVE_OPENGL
25372538
FindMenuItem(menu_array, index)->flags = !SDL_VIDEO_opengl ? UI_ITEM_HIDDEN : UI_ITEM_SUBMENU;
2539+
#else
2540+
FindMenuItem(menu_array, index)->flags = UI_ITEM_HIDDEN;
2541+
#endif
25382542
}
25392543
}
25402544
#endif

0 commit comments

Comments
 (0)