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

Set the correct value of 0.0f for D3DRS_POINTSIZE_MIN #183

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

WinterSnowfall
Copy link
Contributor

@WinterSnowfall WinterSnowfall commented Oct 10, 2024

A minor nitpick, though some games may be affected by it in the end.

The default value of D3DRS_POINTSIZE_MIN in D3D9 is 1.0f, whereas it is 0.0f in D3D8:

image

This needs to be propagated both on device creation and on subsequent device resets.

Besides the documentation hinting at these defaults, I wrote a test to verify them against native d3d8 and d3d9, and they are indeed as stated (thus in need of correction).

@crosire
Copy link
Owner

crosire commented Oct 10, 2024

Could you add a comment with a brief note why the call is made (as described in this PR), so that it's more obvious to future readers of the code?

@WinterSnowfall
Copy link
Contributor Author

Sure, can do.

@crosire crosire merged commit 52a36f0 into crosire:main Oct 11, 2024
@WinterSnowfall WinterSnowfall deleted the pointsizemin branch October 11, 2024 16:08
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