Zombieschannel / SFML

Simple and Fast Multimedia Library
https://www.sfml-dev.org/
zlib License
1 stars 1 forks source link

Fix shaders being broken when using `RenderStates::Default` #10

Closed Zombieschannel closed 2 months ago

Zombieschannel commented 2 months ago

Fixes https://github.com/Zombieschannel/SFML/issues/6 When no custom RenderStates are passed to window.draw(), RenderStates::Default is used, and default shaders then make changes to RenderStates::Default with const_cast which makes RenderStates::Default actually have a default shader instead of it being nullptr.

@Nathan-M-code please test this when you find time

Nathan-M-code commented 2 months ago

All good to me