Revert "GRAPHICS: Tentative fix saveScreenshot() warning for OpenGL"
This reverts commit 0f118d0210
.
This commit is contained in:
parent
74f20c23e1
commit
7408dee5df
3 changed files with 0 additions and 30 deletions
|
@ -265,31 +265,6 @@ protected:
|
|||
*/
|
||||
bool saveScreenshot(const Common::String &filename) const;
|
||||
|
||||
/**
|
||||
* @brief Dummy implementation of saveScreenshot() (ie. no file argument) for OpenGLGraphicsManager
|
||||
*
|
||||
* Currently we have a backend OpenGLSDLGraphicsManager, which inherits from both
|
||||
* OpenGLGraphicsManager and SdlGraphicsManager
|
||||
*
|
||||
* OpenGLSDLGraphicsManager "implements" saveScreenshot(const Common::String &filename) (can be overridden)
|
||||
* by calling the saveScreenshot(const Common::String &filename) of OpenGLGraphicsManager
|
||||
* and saveScreenshot() by calling saveScreenshot() of SdlGraphicsManager
|
||||
*
|
||||
* SdlGraphicsManager provides an implementation of saveScreenshot() (which can be overridden)
|
||||
* but a dummy implementation of saveScreenshot(const Common::String &filename)
|
||||
*
|
||||
* OpenGLGraphicsManager provides the implementation of saveScreenshot(const Common::String &filename)
|
||||
* but needs a (dummy) implementation of saveScreenshot() since OpenGLGraphicsManager inherits from GraphicsManager
|
||||
* This avoids the noisy warning (when building for OpenGL backend with no SDL support):
|
||||
* OpenGL::OpenGLGraphicsManager::saveScreenshot
|
||||
* hides overloaded virtual function
|
||||
* GraphicsManager::saveScreenshot
|
||||
*
|
||||
*/
|
||||
// TODO Maybe we should just unify these two method signatures in one
|
||||
// to avoid this mess
|
||||
void saveScreenshot() override { return; }
|
||||
|
||||
private:
|
||||
//
|
||||
// OpenGL utilities
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue