Error handling for eglSwapBuffers

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1139 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
beuc 2012-03-15 19:52:16 +00:00
parent 792977034a
commit e74cb052f0

View File

@ -32,5 +32,6 @@
void fgPlatformGlutSwapBuffers( SFG_PlatformDisplay *pDisplayPtr, SFG_Window* CurrentWindow ) void fgPlatformGlutSwapBuffers( SFG_PlatformDisplay *pDisplayPtr, SFG_Window* CurrentWindow )
{ {
/* LOGI("Swap!"); */ /* LOGI("Swap!"); */
eglSwapBuffers( pDisplayPtr->eglDisplay, CurrentWindow->Window.pContext.eglSurface ); if (!eglSwapBuffers(pDisplayPtr->eglDisplay, CurrentWindow->Window.pContext.eglSurface))
fgError("eglSwapBuffers: error %x\n", eglGetError());
} }