GL states are no longer polluted by SFML's ones when mixing with custom OpenGL code

This commit is contained in:
Laurent Gomila 2012-03-27 17:09:19 +02:00
parent 24f8c3535d
commit ac45dc9cba
2 changed files with 11 additions and 2 deletions

View file

@ -354,6 +354,7 @@ private :
{
enum {VertexCacheSize = 4};
bool glStatesSet; ///< Are our internal GL states set yet?
bool viewChanged; ///< Has the current view changed since last draw?
BlendMode lastBlendMode; ///< Cached blending mode
Uint64 lastTextureId; ///< Cached texture