diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-02 19:33:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-02 19:33:01 +0300 |
commit | eda234f5e156d376541044b351fd2e1e766700a3 (patch) | |
tree | 56ef425beb88fe84c280dea3a3ddeef676553589 /src/render/modernopenglgraphics.h | |
parent | 5ce62dae5b3848833765a19296ffd9fd7e9721d8 (diff) | |
download | manaverse-eda234f5e156d376541044b351fd2e1e766700a3.tar.gz manaverse-eda234f5e156d376541044b351fd2e1e766700a3.tar.bz2 manaverse-eda234f5e156d376541044b351fd2e1e766700a3.tar.xz manaverse-eda234f5e156d376541044b351fd2e1e766700a3.zip |
Fix resize in modernopengl with own context in SDL1.2 build.
Diffstat (limited to 'src/render/modernopenglgraphics.h')
-rw-r--r-- | src/render/modernopenglgraphics.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index 2b27c621e..86e9f7bf1 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -64,7 +64,7 @@ class ModernOpenGLGraphics final : public Graphics void setColorAll(const Color &color, const Color &color2) override final; - void screenResized(); + void screenResized() override final; void finalize(ImageCollection *const col) override final; @@ -85,6 +85,8 @@ class ModernOpenGLGraphics final : public Graphics virtual void createGLContext() override final; private: + void deleteGLObjects(); + inline void drawQuad(const Image *const image, const int srcX, const int srcY, const int dstX, const int dstY, |