Repository navigation
Fall back to SDL's default renderer when OpenGL ES 2 isn't available - #548
Merged
Merged
Conversation
… made, and log both
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A window draws through an SDL renderer, OpenGL ES 2 unless
SDL_RENDER_DRIVERnames another. When that renderer couldn't be made, the window had none and drew nothing, not even its background. Only the warningSDL could not make a renderershowed. This happened with i386 apps on an x86_64 Debian 13 machine that has 32-bit OpenGL but no 32-bitlibGLESv2.so.2.NSWindow.swiftnow asks SDL for its default renderer when the named one fails. Both steps are logged to stderr:If the default renderer also fails, the existing
SDL could not make a rendererwarning is printed.Tested with the i386 Property List Editor from Xcode 2.4.1 under perry32: