Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL_GL_SwapBuffers returns no error code. #755

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

SDL_GL_SwapBuffers returns no error code. #755

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
duplicate This issue or pull request already exists

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 1.2
Reported for operating system, platform: All, All

Comments on the original bug report:

On 2015-04-09 01:54:41 +0000, wrote:

SDL_GL_SwapBuffers currently returns a void and does not set any errors.

This means an application cannot check if an error occurred. In some cases the application may want to bail out if it cannot swap buffers rather than loop not rendering anything to the screen.

This may not be relevant to all video targets as some may have errored elsewhere but this should be fairly simple to implement for eglSwapBuffers which returns a boolean. Everything else could just return success.

You may say that this should not occur but it certainly can in the case of EGL even after eglMakeCurrent has passed. This is most likely a driver bug but could also be due to context race conditions.

On 2016-10-08 00:08:54 +0000, Sam Lantinga wrote:

Makes sense. Would you like to create a patch to implement this?

On 2016-12-10 22:24:58 +0000, Philipp Wiesemann wrote:

It was implemented for SDL_GL_SwapWindow() to resolve bug 3513.

On 2016-12-11 02:35:10 +0000, wrote:

I was actually intending to refer to SDL_GL_SwapWindow got confused with old SDL and new SDL :)

On 2016-12-11 20:11:39 +0000, Sam Lantinga wrote:

This is a duplicate of bug 3513

*** This bug has been marked as a duplicate of bug 3513 ***

@SDLBugzilla SDLBugzilla added bug duplicate This issue or pull request already exists labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant