Android: warn on resume if no callback for InitContext is defined

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1314 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
beuc 2012-05-13 09:05:55 +00:00
parent 6c8a620bd5
commit 4f3b46e046

View File

@ -460,7 +460,7 @@ void fgPlatformProcessSingleEvent ( void )
} }
} }
} }
/* If coming back from a pause: */ /* Coming back from a pause: */
/* - Recreate window context and surface */ /* - Recreate window context and surface */
/* - Call user-defined hook to restore resources (textures...) */ /* - Call user-defined hook to restore resources (textures...) */
/* - Exit pause looop */ /* - Exit pause looop */
@ -473,6 +473,8 @@ void fgPlatformProcessSingleEvent ( void )
fgPlatformOpenWindow(window, "", GL_FALSE, 0, 0, GL_FALSE, 0, 0, GL_FALSE, GL_FALSE); fgPlatformOpenWindow(window, "", GL_FALSE, 0, 0, GL_FALSE, 0, 0, GL_FALSE, GL_FALSE);
/* TODO: INVOKE_WCB(*window, Pause?); */ /* TODO: INVOKE_WCB(*window, Pause?); */
/* TODO: INVOKE_WCB(*window, Resume?); */ /* TODO: INVOKE_WCB(*window, Resume?); */
if (!FETCH_WCB(*window, FixMyNameInitContext)
fgWarning("Resuming application, but no callback to reload context resources (glutFixMyNameInitContextFunc)");
} }
} }
} }