Add missing parameters in CEAGLManager::activateContext.

Thanks to Maksym Hamarnyk for the patch.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6118 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2020-06-13 14:49:38 +00:00
parent 562c0fb6f1
commit 87c0b1fb93
2 changed files with 38 additions and 38 deletions

@ -54,7 +54,7 @@ namespace video
const SExposedVideoData& getContext() const; const SExposedVideoData& getContext() const;
bool activateContext(const SExposedVideoData& videoData); bool activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero);
// Swap buffers. // Swap buffers.
bool swapBuffers(); bool swapBuffers();

@ -196,7 +196,7 @@ void CEAGLManager::destroyContext()
Data.OpenGLiOS.Context = 0; Data.OpenGLiOS.Context = 0;
} }
bool CEAGLManager::activateContext(const SExposedVideoData& videoData) bool CEAGLManager::activateContext(const SExposedVideoData& videoData, bool restorePrimaryOnZero)
{ {
SEAGLManagerDataStorage* dataStorage = static_cast<SEAGLManagerDataStorage*>(DataStorage); SEAGLManagerDataStorage* dataStorage = static_cast<SEAGLManagerDataStorage*>(DataStorage);
EAGLContext* context = dataStorage->Context; EAGLContext* context = dataStorage->Context;