diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-15 01:37:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-15 01:37:01 +0300 |
commit | 0f208c6842ef13d8c68b179eb0ab88a37a0926b0 (patch) | |
tree | dc60df46116896fc362ac5067fbc464982ee2cc9 /src/resources/openglimagehelper.h | |
parent | 8f9ffaa42e6fa11bb963fa9f1a1824d85a50b51b (diff) | |
download | plus-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/openglimagehelper.h')
-rw-r--r-- | src/resources/openglimagehelper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h index d87052592..2a91689d9 100644 --- a/src/resources/openglimagehelper.h +++ b/src/resources/openglimagehelper.h @@ -116,6 +116,8 @@ class OpenGLImageHelper final : public ImageHelper static void setUseTextureSampler(const bool b) { mUseTextureSampler = b; } + static void invalidate(const GLuint textureId); + SDL_Surface *create32BitSurface(int width, int height) const override final; |