Fixed texture cache not properly updated when a same sf::Image instance allocated a new OpenGL texture internally
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1631 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
0e2297af28
commit
230f5e58ca
2 changed files with 3 additions and 13 deletions
|
@ -70,12 +70,6 @@ public :
|
|||
////////////////////////////////////////////////////////////
|
||||
Renderer(RenderTarget& target);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destructor
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
~Renderer();
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Initialize the renderer (set the default states, etc.)
|
||||
///
|
||||
|
@ -355,6 +349,7 @@ private :
|
|||
States myStatesStack[64]; ///< Stack of render states
|
||||
States* myStates; ///< Current set of render states
|
||||
const Image* myTexture; ///< Current texture
|
||||
unsigned int myTextureId; ///< Current texture identifier (the sf::Image instance may be the same, but not the internal OpenGL texture)
|
||||
const Shader* myShader; ///< Current pixel shader
|
||||
Blend::Mode myBlendMode; ///< Current blending mode
|
||||
IntRect myViewport; ///< Current target viewport
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue