aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-31 22:04:55 +0100
committerdec05eba <dec05eba@protonmail.com>2020-10-31 22:04:55 +0100
commit2278d52b59e9818f08bd73ec6583a1589d9512f2 (patch)
tree042970634d5d7fa44c739598f5c61177610e4b41 /src
parent8461b2f7c3002d8f30a36411788074ed1ba011f3 (diff)
Remove explicit opengl version
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 0347cbb..dc3d167 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -306,7 +306,7 @@ namespace QuickMedia {
Program::Program() :
disp(nullptr),
- window(sf::VideoMode(1280, 720), "QuickMedia", sf::Style::Default, sf::ContextSettings(0, 0, 0, 3, 3)),
+ window(sf::VideoMode(1280, 720), "QuickMedia", sf::Style::Default),
window_size(1280, 720),
current_page(PageType::EXIT),
image_index(0)
@@ -1834,7 +1834,7 @@ namespace QuickMedia {
if(!related_media_window) {
related_media_window_size.x = window_size.x * RELATED_MEDIA_WINDOW_WIDTH;
related_media_window_size.y = window_size.y;
- related_media_window = std::make_unique<sf::RenderWindow>(sf::VideoMode(related_media_window_size.x, related_media_window_size.y), "", 0, sf::ContextSettings(0, 0, 0, 3, 3));
+ related_media_window = std::make_unique<sf::RenderWindow>(sf::VideoMode(related_media_window_size.x, related_media_window_size.y), "", 0);
related_media_window->setFramerateLimit(0);
if(!enable_vsync(disp, related_media_window->getSystemHandle())) {
fprintf(stderr, "Failed to enable vsync, fallback to frame limiting\n");