summaryrefslogtreecommitdiff
path: root/src/resources/subimage.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-15 01:37:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-15 01:37:01 +0300
commit0f208c6842ef13d8c68b179eb0ab88a37a0926b0 (patch)
treedc60df46116896fc362ac5067fbc464982ee2cc9 /src/resources/subimage.h
parent8f9ffaa42e6fa11bb963fa9f1a1824d85a50b51b (diff)
downloadplus-0f208c6842ef13d8c68b179eb0ab88a37a0926b0.tar.gz
plus-0f208c6842ef13d8c68b179eb0ab88a37a0926b0.tar.bz2
plus-0f208c6842ef13d8c68b179eb0ab88a37a0926b0.tar.xz
plus-0f208c6842ef13d8c68b179eb0ab88a37a0926b0.zip
Add OpenGL extension GL_ARB_invalidate_subdata.
And use it for invalidate prepared for deletion images.
Diffstat (limited to 'src/resources/subimage.h')
-rw-r--r--src/resources/subimage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/subimage.h b/src/resources/subimage.h
index 27a76d277..2fe562c30 100644
--- a/src/resources/subimage.h
+++ b/src/resources/subimage.h
@@ -79,6 +79,10 @@ class SubImage final : public Image
const int width,
const int height) override final A_WARN_UNUSED;
+#ifdef USE_OPENGL
+ void decRef() override final;
+#endif
+
SDL_Rect mInternalBounds;
private: