mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Added an automatic Flush() when drawing with a shader (temporary workaround to make shaders parameters work properly)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1283 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
b735c7f3d1
commit
8bc4460d15
@ -118,6 +118,10 @@ void RenderTarget::Draw(const Drawable& object, const Shader& shader)
|
|||||||
|
|
||||||
// Restore the previous render states
|
// Restore the previous render states
|
||||||
myRenderQueue.PopStates();
|
myRenderQueue.PopStates();
|
||||||
|
|
||||||
|
// For now, drawing with a shader cannot be batched because of the shader's parameters
|
||||||
|
// @todo Find a better solution!
|
||||||
|
Flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user