-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
SDL3 multiviewport fix for non-shared textures (for fonts only) #7678
base: features/sdl_renderer3_multiviewports
Are you sure you want to change the base?
SDL3 multiviewport fix for non-shared textures (for fonts only) #7678
Conversation
…en: see 2 FIXMES)
This is probably reliant on certain backend and os and is unlikely to work with all of them supported by SDL. |
It might be, also after doing some research i found out that there is ways to copy the textures between renderers rather than recreating them. Though SDL3 still to this date does not support sharing textures between 2 different SDL_Renderer instances without any extra code. So something needs to be done about it. |
It’s well known what needs to be done, but SDL Renderer for some backends creates one device per renderer making the textures non sharable. |
b834972
to
bae7f8f
Compare
bae7f8f
to
ee14dfd
Compare
ee14dfd
to
b02532f
Compare
Very nasty fix for SDL3 not being able to share fonts between renderers, but it works.
Though i think this needs better solution, pointer comparing isn't the best approach