-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
SDL2: Use of SDL_Renderer messes up font rendering #408
Comments
It looks like SDLRenderer is not compatible with using OpenGL2 calls directly. |
I have now merged the aforementioned example in trunk, see updates in #356 Howver note that SDL_Renderer support different backends and doesn't guarantee OpenGL unlessyou force the underlying render driver when calling SDL_CreateRenderer(). See http://hg.libsdl.org/SDL/file/31b7adf67756/src/render/SDL_sysrender.h |
I'm sure that mixing GL and SDL_RenderPresent actually isn't supported |
We have a new imgui_impl_sdlrenderer.cpp backend! FYI, although I personally recommend using native-backends, SDL 2.0.18 (tentative scheduled in 52 days) will add support for a new This is now available on master (currently requires building SDL from latest sources) (Note the backend currently doesn't support multi-viewports.) |
Given the modified sdl_opengl_example:
The each glyph of text is rendered as a solid white rectangle.
Even if we stop calling
SDL_RenderDrawRect
in our loop the fonts continue to render incorrectly.I wish I had more information/knowledge on the subject but I don't have a whole lot of experience with OpenGL.
Thanks.
The text was updated successfully, but these errors were encountered: