Fixed a bunch of SwapWindow calls that needed their return value updated

This commit is contained in:
Sam Lantinga
2016-12-09 05:12:27 -08:00
parent 7a39681ea5
commit 97d05b0da8
13 changed files with 24 additions and 17 deletions

View File

@@ -177,7 +177,9 @@ PSP_GL_GetSwapInterval(_THIS)
int
PSP_GL_SwapWindow(_THIS, SDL_Window * window)
{
eglSwapBuffers(_this->gl_data->display, _this->gl_data->surface);
if (!eglSwapBuffers(_this->gl_data->display, _this->gl_data->surface)) {
return SDL_SetError("!eglSwapBuffers() failed");
}
return 0;
}