summaryrefslogtreecommitdiff
path: root/src/SFML/Graphics/RenderTexture.cpp
diff options
context:
space:
mode:
authorJames Cowgill <jcowgill@debian.org>2016-08-09 15:20:03 +0000
committerJames Cowgill <jcowgill@debian.org>2016-08-09 15:20:03 +0000
commitdf93e238e30e97850d76ad5585b8ab9ad9c03e67 (patch)
tree2ae5f3305e1ee1882f563d2803f94aa6446dc367 /src/SFML/Graphics/RenderTexture.cpp
parent301fd78b3ac87cf1fbce9d2c955db89094a304a5 (diff)
Imported Upstream version 2.4.0+dfsg
Diffstat (limited to 'src/SFML/Graphics/RenderTexture.cpp')
-rw-r--r--src/SFML/Graphics/RenderTexture.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/SFML/Graphics/RenderTexture.cpp b/src/SFML/Graphics/RenderTexture.cpp
index 4602beb..b6daab7 100644
--- a/src/SFML/Graphics/RenderTexture.cpp
+++ b/src/SFML/Graphics/RenderTexture.cpp
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
-// Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
+// Copyright (C) 2007-2016 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
@@ -117,6 +117,13 @@ bool RenderTexture::isRepeated() const
////////////////////////////////////////////////////////////
+bool RenderTexture::generateMipmap()
+{
+ return m_texture.generateMipmap();
+}
+
+
+////////////////////////////////////////////////////////////
bool RenderTexture::setActive(bool active)
{
return m_impl && m_impl->activate(active);
@@ -131,6 +138,7 @@ void RenderTexture::display()
{
m_impl->updateTexture(m_texture.m_texture);
m_texture.m_pixelsFlipped = true;
+ m_texture.invalidateMipmap();
}
}