From b93d7dd3cbd6dae2011e7863ba8a7aa19614771e Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Mon, 8 Mar 2021 15:42:39 +0100 Subject: Add: Option to (dis-)allow accelerated video drivers. (#8819) The video drivers using the OpenGL backend are currently our only accelerated drivers. The options defaults to off for macOS builds and to on everywhere else. Co-authored-by: Michael Lutz --- src/video/win32_v.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/video/win32_v.h') diff --git a/src/video/win32_v.h b/src/video/win32_v.h index 017467118..6dec59300 100644 --- a/src/video/win32_v.h +++ b/src/video/win32_v.h @@ -175,6 +175,9 @@ class FVideoDriver_Win32OpenGL : public DriverFactoryBase { public: FVideoDriver_Win32OpenGL() : DriverFactoryBase(Driver::DT_VIDEO, 10, "win32-opengl", "Win32 OpenGL Video Driver") {} /* virtual */ Driver *CreateInstance() const override { return new VideoDriver_Win32OpenGL(); } + +protected: + bool UsesHardwareAcceleration() const override { return true; } }; #endif /* WITH_OPENGL */ -- cgit v1.2.3-54-g00ecf