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

Add D3DFMT_UNKNOWN checks on object creation #184

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

WinterSnowfall
Copy link
Contributor

D3D8 has some specific pointer clearing behavior around D3DFMT_UNKNOWN format validations. These fix several Wine tests, but also a test I wrote myself that passes on native D3D8.

@ThirteenAG
Copy link
Contributor

May I also ask to fix warnings of this kind while you're at it?

d3d8to9.cpp(25,21): error C2440: 'initializing': cannot convert from 'const char [1]' to 'char *' 

Project stopped compiling with c++latest after recent merges.

@WinterSnowfall
Copy link
Contributor Author

WinterSnowfall commented Oct 16, 2024

@ThirteenAG Sorry for the trouble, but it all works fine here in MSVC 2022 (I always compile and check, of course), so not sure what the problem is.

P.S.: Feel free to adjust for c++latest, of course. I've (hopefully) PRed a fix.

@CookiePLMonster
Copy link
Contributor

It's probably a warnings-as-errors thing.

@crosire crosire merged commit 7a2f98e into crosire:main Oct 17, 2024
@WinterSnowfall WinterSnowfall deleted the fmtunknown branch October 18, 2024 15:51
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.

4 participants