diff --git a/src/video/cocoa/cocoa_ogl.h b/src/video/cocoa/cocoa_ogl.h --- a/src/video/cocoa/cocoa_ogl.h +++ b/src/video/cocoa/cocoa_ogl.h @@ -18,11 +18,12 @@ class VideoDriver_CocoaOpenGL : public V CGLContextObj gl_context; uint8 *anim_buffer; ///< Animation buffer from OpenGL back-end. + std::string driver_info; ///< Information string about selected driver. const char *AllocateContext(bool allow_software); public: - VideoDriver_CocoaOpenGL() : gl_context(nullptr), anim_buffer(nullptr) {} + VideoDriver_CocoaOpenGL() : gl_context(nullptr), anim_buffer(nullptr), driver_info(this->GetName()) {} const char *Start(const StringList ¶m) override; void Stop() override; @@ -41,6 +42,8 @@ public: /** Return driver name */ const char *GetName() const override { return "cocoa-opengl"; } + const char *GetInfoString() const override { return this->driver_info.c_str(); } + void AllocateBackingStore(bool force = false) override; protected: