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:
LaurentGom 2009-11-22 22:15:56 +00:00
parent b735c7f3d1
commit 8bc4460d15

View File

@ -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();
} }