Skip to content

Commit

Permalink
Revert "enhancement: enable OpenGL flag for windows (#1629)"
Browse files Browse the repository at this point in the history
This reverts commit 39cad6a.
  • Loading branch information
midwan committed Feb 12, 2025
1 parent 2d4760c commit f0d57af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 (currently BROKEN)" OFF)
option(USE_OPENGL "Use OpenGL" OFF)
# Enable Link Time Optimization?
option(WITH_LTO "Enable Link Time Optimization" OFF)

Expand Down
2 changes: 2 additions & 0 deletions src/osdep/amiberry_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ 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)
{
Expand Down
1 change: 0 additions & 1 deletion src/osdep/gui/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ 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)
{
Expand Down

0 comments on commit f0d57af

Please sign in to comment.