From eda234f5e156d376541044b351fd2e1e766700a3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Jul 2014 19:33:01 +0300 Subject: Fix resize in modernopengl with own context in SDL1.2 build. --- src/render/graphics.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/render/graphics.h') diff --git a/src/render/graphics.h b/src/render/graphics.h index e05f23a84..3a051ed55 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -167,6 +167,9 @@ class Graphics notfinal */ virtual bool resizeScreen(const int width, const int height); + virtual void restoreContext() + { } + /** * Draws a resclaled version of the image */ @@ -468,6 +471,9 @@ class Graphics notfinal uint32_t *const arr A_UNUSED) { } + virtual void screenResized() + { } + int mWidth; int mHeight; int mActualWidth; -- cgit v1.2.3-60-g2f50