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 <michi@icosahedron.de>
This commit is contained in:
@@ -107,6 +107,15 @@ protected:
|
||||
|
||||
virtual ~DriverFactoryBase();
|
||||
|
||||
/**
|
||||
* Does the driver use hardware acceleration (video-drivers only).
|
||||
* @return True if the driver uses hardware acceleration.
|
||||
*/
|
||||
virtual bool UsesHardwareAcceleration() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public:
|
||||
/**
|
||||
* Shuts down all active drivers
|
||||
|
Reference in New Issue
Block a user