From b709a14a810c2cc5b20424312311dcfb26747e28 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Tue, 11 Feb 2025 21:46:55 +0100 Subject: [PATCH 1/2] enhancement: enable OpenGL flag for windows --- src/osdep/amiberry_gfx.cpp | 2 -- src/osdep/gui/main_window.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osdep/amiberry_gfx.cpp b/src/osdep/amiberry_gfx.cpp index b476ef5eb..6c8203482 100644 --- a/src/osdep/amiberry_gfx.cpp +++ b/src/osdep/amiberry_gfx.cpp @@ -301,9 +301,7 @@ static void SDL2_init() mode |= SDL_WINDOW_SHOWN; // Set Window allow high DPI by default mode |= SDL_WINDOW_ALLOW_HIGHDPI; -#ifdef USE_OPENGL mode |= SDL_WINDOW_OPENGL; -#endif if (amiberry_options.rotation_angle == 0 || amiberry_options.rotation_angle == 180) { diff --git a/src/osdep/gui/main_window.cpp b/src/osdep/gui/main_window.cpp index 1343116f5..3d7b313f8 100644 --- a/src/osdep/gui/main_window.cpp +++ b/src/osdep/gui/main_window.cpp @@ -310,6 +310,7 @@ void amiberry_gui_init() mode |= SDL_WINDOW_SHOWN; // Set Window allow high DPI by default mode |= SDL_WINDOW_ALLOW_HIGHDPI; + mode |= SDL_WINDOW_OPENGL; if (amiberry_options.rotation_angle == 0 || amiberry_options.rotation_angle == 180) { From ee013304f6d16e18fe60d62a35e45a1267e18ee2 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Tue, 11 Feb 2025 21:58:36 +0100 Subject: [PATCH 2/2] doc: make it very clear that OpenGL support is not fully working yet --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35bc6ad57..8d08d71d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ option(USE_GPIOD "Use GPIOD" OFF) # Use DBUS to control the emulator? option(USE_DBUS "Use DBus" OFF) # Use OpenGL for rendering? NOTE: Not yet implemented -option(USE_OPENGL "Use OpenGL" OFF) +option(USE_OPENGL "Use OpenGL (currently BROKEN)" OFF) # Enable Link Time Optimization? option(WITH_LTO "Enable Link Time Optimization" OFF)