This commit is contained in:
@@ -23,7 +23,7 @@ class VideoDriver_CocoaOpenGL : public VideoDriver_Cocoa {
|
||||
const char *AllocateContext(bool allow_software);
|
||||
|
||||
public:
|
||||
VideoDriver_CocoaOpenGL() : gl_context(nullptr), anim_buffer(nullptr), driver_info(this->GetName()) {}
|
||||
VideoDriver_CocoaOpenGL() : VideoDriver_Cocoa(true), gl_context(nullptr), anim_buffer(nullptr), driver_info(this->GetName()) {}
|
||||
|
||||
const char *Start(const StringList ¶m) override;
|
||||
void Stop() override;
|
||||
|
||||
@@ -35,7 +35,7 @@ public:
|
||||
OTTD_CocoaWindowDelegate *delegate; //!< Window delegate object
|
||||
|
||||
public:
|
||||
VideoDriver_Cocoa();
|
||||
VideoDriver_Cocoa(bool uses_hardware_acceleration = false);
|
||||
|
||||
void Stop() override;
|
||||
void MainLoop() override;
|
||||
|
||||
@@ -87,7 +87,8 @@ static const Dimension _default_resolutions[] = {
|
||||
};
|
||||
|
||||
|
||||
VideoDriver_Cocoa::VideoDriver_Cocoa()
|
||||
VideoDriver_Cocoa::VideoDriver_Cocoa(bool uses_hardware_acceleration)
|
||||
: VideoDriver(uses_hardware_acceleration)
|
||||
{
|
||||
this->setup = false;
|
||||
this->buffer_locked = false;
|
||||
|
||||
Reference in New Issue
Block a user