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
Fixes https://github.com/Zombieschannel/SFML/issues/6 When no custom
RenderStates
are passed towindow.draw()
,RenderStates::Default
is used, and default shaders then make changes toRenderStates::Default
withconst_cast
which makesRenderStates::Default
actually have a default shader instead of it being nullptr.@Nathan-M-code please test this when you find time