Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement: enable OpenGL flag for windows #1629

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" OFF)
option(USE_OPENGL "Use OpenGL (currently BROKEN)" OFF)
# Enable Link Time Optimization?
option(WITH_LTO "Enable Link Time Optimization" OFF)

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