PP_OK isn't available in the NaCl build environment on buildbot. It's defined as 0

This commit is contained in:
Sam Lantinga 2016-12-09 05:19:31 -08:00
parent 97d05b0da8
commit 454d9cb96d
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ NACL_GLES_SwapWindow(_THIS, SDL_Window * window)
{ {
SDL_VideoData *driverdata = (SDL_VideoData *) _this->driverdata; SDL_VideoData *driverdata = (SDL_VideoData *) _this->driverdata;
struct PP_CompletionCallback callback = { NULL, 0, PP_COMPLETIONCALLBACK_FLAG_NONE }; struct PP_CompletionCallback callback = { NULL, 0, PP_COMPLETIONCALLBACK_FLAG_NONE };
if (driverdata->ppb_graphics->SwapBuffers((PP_Resource) SDL_GL_GetCurrentContext(), callback ) != PP_OK) { if (driverdata->ppb_graphics->SwapBuffers((PP_Resource) SDL_GL_GetCurrentContext(), callback ) != 0) {
return SDL_SetError("SwapBuffers failed"); return SDL_SetError("SwapBuffers failed");
} }
return 0; return 0;