From: Sylvain Beucler Date: Sun, 13 May 2012 09:05:55 +0000 (+0000) Subject: Android: warn on resume if no callback for InitContext is defined X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=fb19747bd26fdfec6dbaa21b9eda321c73a0eb6b;p=freeglut Android: warn on resume if no callback for InitContext is defined git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1314 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/android/fg_main_android.c b/src/android/fg_main_android.c index 7c11278..37d3a21 100644 --- a/src/android/fg_main_android.c +++ b/src/android/fg_main_android.c @@ -460,7 +460,7 @@ void fgPlatformProcessSingleEvent ( void ) } } } - /* If coming back from a pause: */ + /* Coming back from a pause: */ /* - Recreate window context and surface */ /* - Call user-defined hook to restore resources (textures...) */ /* - Exit pause looop */ @@ -473,6 +473,8 @@ void fgPlatformProcessSingleEvent ( void ) fgPlatformOpenWindow(window, "", GL_FALSE, 0, 0, GL_FALSE, 0, 0, GL_FALSE, GL_FALSE); /* TODO: INVOKE_WCB(*window, Pause?); */ /* TODO: INVOKE_WCB(*window, Resume?); */ + if (!FETCH_WCB(*window, FixMyNameInitContext) + fgWarning("Resuming application, but no callback to reload context resources (glutFixMyNameInitContextFunc)"); } } }