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

Small renderer cleanup #1552

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

slipher
Copy link
Member

@slipher slipher commented Feb 12, 2025

No description provided.

GL_PushMatrix();

MatrixOrthogonalProjection( ortho, 0, tr.contrastRenderFBO->width, 0, tr.contrastRenderFBO->height, -99999, 99999 );
GL_LoadProjectionMatrix( ortho );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The modelViewProjectionMatrix, which is modified by GL_LoadProjectionMatrix(), is uploaded in Tess_InstantQuad(), and uses different width/height than the previous one (tr.contrastRenderFBO is 1/8 window size), so this looks wrong.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That matrix is immediately discarded with PopMatrix and not used. I verified there is no change in screenshots with bloom enabled.

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.

2 participants