-
-
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
Empty windows with SDL2 renderer on macOS #5931
Comments
Out of curiosity try to remove the We haven't really standardized setting/applying framebufferscale but it is currently a bit of a mess, hence my rather obtuse answer ( = I don't have full answer). Links: Notice in // If there's a scale factor set by the user, use that instead
// If the user has specified a scale factor to SDL_Renderer already via SDL_RenderSetScale(), SDL will scale whatever we pass
// to SDL_RenderGeometryRaw() by that scale factor. In that case we don't want to be also scaling it ourselves here.
float rsx = 1.0f;
float rsy = 1.0f;
SDL_RenderGetScale(bd->SDLRenderer, &rsx, &rsy);
ImVec2 render_scale;
render_scale.x = (rsx == 1.0f) ? draw_data->FramebufferScale.x : 1.0f;
render_scale.y = (rsy == 1.0f) ? draw_data->FramebufferScale.y : 1.0f; |
Can you debug step into the beginning of ImGui_ImplSDLRenderer_RenderDrawData() and report all the values? They are not hard problems to solve but I don’t have a Mac, I’ll want to spend more time on backend dpi issue on Mac for 1.90 |
Hello, |
Version/Branch of Dear ImGui:
Version: 1.89.1
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_sdl.h, imgui_impl_sdlrenderer.h; SDL2 using Metal
Compiler: Apple clang 14.0.0 (am64-apple-darwin22.1.0)
Operating System: macOS Ventura 13.0
My Issue/Question:
I'm trying to render the demo window and one additional window. The window frames are both shown but only the additional window has a title and both of the windows are completely empty. The mouse also seems to be strangely offset. At first I thought this might somehow be a font issue because of the missing text but adding a custom font made no difference.
Screenshots/Video
Standalone, minimal, complete and verifiable example:
(error handling omitted for brevity)
The text was updated successfully, but these errors were encountered: