Skip to content

Commit

Permalink
PP_OK isn't available in the NaCl build environment on buildbot. It's…
Browse files Browse the repository at this point in the history
… defined as 0
  • Loading branch information
slouken committed Dec 9, 2016
1 parent 97d05b0 commit 454d9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/nacl/SDL_naclopengles.c
Expand Up @@ -156,7 +156,7 @@ NACL_GLES_SwapWindow(_THIS, SDL_Window * window)
{
SDL_VideoData *driverdata = (SDL_VideoData *) _this->driverdata;
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 0;
Expand Down

0 comments on commit 454d9cb

Please sign in to comment.