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

EndTextureMode does not restore framebuffer size correctly #49

Closed
fruityloops1 opened this issue May 16, 2024 · 0 comments
Closed

EndTextureMode does not restore framebuffer size correctly #49

fruityloops1 opened this issue May 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@fruityloops1
Copy link

Describe the bug
EndTextureMode restores the framebuffer size by setting it to itself, which changes nothing. This causes problems when trying to use a RenderTexture of a different size than the window.

To Reproduce
Create a render texture with a different size than the window, then try to call GetScreenWidth/Height after using it and calling EndTextureMode and get the wrong values.

Expected behavior
The size is restored correctly (using a stack or similar)

The issue is here

@CreedVI CreedVI self-assigned this May 17, 2024
@CreedVI CreedVI added the bug Something isn't working label May 17, 2024
@CreedVI CreedVI mentioned this issue May 17, 2024
CreedVI added a commit that referenced this issue May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants