Skip to content

Conversation

@TheTryton
Copy link

In case a framebuffer would be created with textures with custom dimensions instead of using BackbufferRatio the existing code can write incorrect predefined uniforms to the shaders. In a case that the window has 1280x720 resolution (m_resolution = {1280, 720}) and the custom framebuffer being set to textures with 3840x2160 resolution the existing code will adjust the m_view from any value set in the user code to {*, *, 1280, 720} thus putting several invalid predefined uniforms in the shaders.

This fix should only do that for framebuffers that are related to the m_resolution using the BackbufferRatio feature, other ones are ignored and the m_view value is not touched.

@TheTryton TheTryton requested a review from bkaradzic as a code owner August 6, 2024 11:03
@TheTryton TheTryton changed the title Fix: Only adjust view rect if uses custom FrameBuffer with textures using BackbufferRatio Fix: Only adjust view rect if it uses custom FrameBuffer with textures using BackbufferRatio Aug 7, 2024
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

Successfully merging this pull request may close these issues.

1 participant