Skip to content

Commit

Permalink
fix EmscriptenEGLWindow::contextLostCallback and contextRestoredCallb…
Browse files Browse the repository at this point in the history
…ack inconsistency with declaration
  • Loading branch information
Altren committed Sep 3, 2024
1 parent e9ca17b commit 41bb847
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@ namespace Ogre {
mClosed = false;
}

int EmscriptenEGLWindow::contextLostCallback(int eventType, const void *reserved, void *userData)
EM_BOOL EmscriptenEGLWindow::contextLostCallback(int eventType, const void *reserved, void *userData)
{
Ogre::EmscriptenEGLWindow* thiz = static_cast<Ogre::EmscriptenEGLWindow*>(userData);
thiz->_notifySurfaceDestroyed();
return 0;
}

int EmscriptenEGLWindow::contextRestoredCallback(int eventType, const void *reserved, void *userData)
EM_BOOL EmscriptenEGLWindow::contextRestoredCallback(int eventType, const void *reserved, void *userData)
{
Ogre::EmscriptenEGLWindow* thiz = static_cast<Ogre::EmscriptenEGLWindow*>(userData);
thiz->_notifySurfaceCreated(&thiz->mWindow);
Expand Down

0 comments on commit 41bb847

Please sign in to comment.