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

FNA 25.03 SDL3 - Problem with RenderTarget in WinForm #515

Open
Predator75 opened this issue Mar 9, 2025 · 3 comments
Open

FNA 25.03 SDL3 - Problem with RenderTarget in WinForm #515

Predator75 opened this issue Mar 9, 2025 · 3 comments

Comments

@Predator75
Copy link

Hi,
there is a problem with SDL3 (Fna 25.03) and WinForm, both .Net and FrameWork 4.8.
My project is a winform with FNA hook in a Panel.
With FNA 25.01 all works OK.

Upgrandig to 25.03 and sdl3, there is a problem with RenderTarget.
For example if I have 3 object to render, it render at the first a black screen and next, only one object, always.
It is enough that the project is winform to verify the problem, there is no need to embed fna in a panel.

I have do a litlle demo project, try to click to one square, it save 3 png, first click black screen and next the same object istead all:
and from the second click it save all the same image, instead the 3 differents object

https://www.eprimeos.com/download/temp/SinDestinyGameEditor-004.rar

If you use the same code in a console project, it works correctly.
if you use the same code with fna 25.01 and sdl2, it works correctly.
Best

@Predator75 Predator75 changed the title FNA 25.03 SDL3 - Problem with RenderTarget in WInForm FNA 25.03 SDL3 - Problem with RenderTarget in WinForm Mar 9, 2025
@flibitijibibo
Copy link
Member

Does this still happen if you force D3D11?

@Predator75
Copy link
Author

I have just set -gldevice:D3D11, the problem seems to be solved

@Predator75
Copy link
Author

with OpenGL works, too.
But there is there a strange thing, in the project with FNA embedded in a panel, when I use the rendertarget the fna window becomes black for a moment.
I'll update you with more tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants