From f5c40ef7c84f9d5914550b5781bad01ba63676dd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 22:12:18 +0300 Subject: Fix compilation errors with SDL2. --- src/resources/surfaceimagehelper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/resources/surfaceimagehelper.h') diff --git a/src/resources/surfaceimagehelper.h b/src/resources/surfaceimagehelper.h index 65aa682a9..18eda5149 100644 --- a/src/resources/surfaceimagehelper.h +++ b/src/resources/surfaceimagehelper.h @@ -73,7 +73,8 @@ class SurfaceImageHelper final : public ImageHelper * Tells if the image was loaded using OpenGL or SDL * @return true if OpenGL, false if SDL. */ - RenderType useOpenGL() const override final A_WARN_UNUSED; + RenderType useOpenGL() const noexcept2 override final A_WARN_UNUSED + { return RENDER_SOFTWARE; } static SDL_Surface* SDLDuplicateSurface(SDL_Surface *const tmpImage) A_WARN_UNUSED; -- cgit v1.2.3-60-g2f50