Skip to content

Conversation

StrixG
Copy link
Contributor

@StrixG StrixG commented Aug 3, 2020

Image

image

Test resource: primitivebug.zip

Fixes #1581

@StrixG StrixG added this to the 1.5.8 milestone Aug 3, 2020
@StrixG StrixG added the bug Something isn't working label Aug 3, 2020
Copy link
Contributor

@qaisjp qaisjp left a comment

Choose a reason for hiding this comment

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

Seems OK but how come reading floats directly causes this issue?

@StrixG
Copy link
Contributor Author

StrixG commented Aug 3, 2020

Seems OK but how come reading floats directly causes this issue?

¯\_(ツ)_/¯

static_cast<DWORD>(static_cast<int64_t>(float)) // not okay
static_cast<DWORD>(static_cast<int64_t>(double)) // works great

@StrixG StrixG merged commit c79a3ac into multitheftauto:master Aug 5, 2020
@StrixG StrixG deleted the bugfix/1581-primitive-colors branch August 5, 2020 23:22
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

Successfully merging this pull request may close these issues.

dxDrawPrimitive* & dxDrawMaterialPrimitive* color bug
2 participants