aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-14 19:34:48 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-14 19:34:48 +0200
commit503071f0f4bb943e6339e213aae69b4b8d3ddd59 (patch)
tree2f1efaa20c0793e87722f8d43a218f69cee24b9f
parenteb077f4f135244e066f3db483e3abadf8ee1fa8a (diff)
Use opengl v3.3
-rw-r--r--src/QuickMedia.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index f24be55..7027ac9 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -142,7 +142,7 @@ static bool enable_vsync(Display *disp, Window window) {
namespace QuickMedia {
Program::Program() :
disp(nullptr),
- window(sf::VideoMode(1280, 720), "QuickMedia"),
+ window(sf::VideoMode(1280, 720), "QuickMedia", sf::Style::Default, sf::ContextSettings(0, 0, 0, 3, 3)),
window_size(1280, 720),
body(nullptr),
current_plugin(nullptr),
@@ -1292,7 +1292,7 @@ namespace QuickMedia {
if(!current_plugin->is_image_board()) {
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);
+ 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->setFramerateLimit(0);
if(!enable_vsync(disp, related_media_window->getSystemHandle())) {
fprintf(stderr, "Failed to enable vsync, fallback to frame limiting\n");