Fix #10079: don't render at 1000fps if HW acceleration + vsync is requested but not active (#12067)

This commit is contained in:
Patric Stout
2024-02-12 22:39:23 +01:00
committed by GitHub
parent 79374bc003
commit bad31f2d42
8 changed files with 14 additions and 11 deletions
+2 -2
View File
@@ -22,8 +22,8 @@
#include "../window_func.h"
#include "video_driver.hpp"
bool _video_hw_accel; ///< Whether to consider hardware accelerated video drivers.
bool _video_vsync; ///< Whether we should use vsync (only if _video_hw_accel is enabled).
bool _video_hw_accel; ///< Whether to consider hardware accelerated video drivers on startup.
bool _video_vsync; ///< Whether we should use vsync (only if active video driver supports HW acceleration).
void VideoDriver::GameLoop()
{