File diff r26253:da15255c652b → r26254:4dd185cf8a2d
src/video/cocoa/cocoa_ogl.h
Show inline comments
 
@@ -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 &param) 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: