summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-12 22:12:18 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-12 22:12:18 +0300
commitf5c40ef7c84f9d5914550b5781bad01ba63676dd (patch)
treefbfd5097d334a961e5a580d4e53409e539108221
parent47bcf6b7096d8a210d3a92d8b36913bc8163c9b4 (diff)
downloadmanaverse-f5c40ef7c84f9d5914550b5781bad01ba63676dd.tar.gz
manaverse-f5c40ef7c84f9d5914550b5781bad01ba63676dd.tar.bz2
manaverse-f5c40ef7c84f9d5914550b5781bad01ba63676dd.tar.xz
manaverse-f5c40ef7c84f9d5914550b5781bad01ba63676dd.zip
Fix compilation errors with SDL2.s20161213
-rw-r--r--src/resources/sdl2softwareimagehelper.h3
-rw-r--r--src/resources/surfaceimagehelper.cpp5
-rw-r--r--src/resources/surfaceimagehelper.h3
3 files changed, 3 insertions, 8 deletions
diff --git a/src/resources/sdl2softwareimagehelper.h b/src/resources/sdl2softwareimagehelper.h
index 789bfea85..47a0f7ed5 100644
--- a/src/resources/sdl2softwareimagehelper.h
+++ b/src/resources/sdl2softwareimagehelper.h
@@ -74,8 +74,7 @@ class SDL2SoftwareImageHelper final : public ImageHelper
SDL_Surface *restrict const dst,
SDL_Rect *restrict const dstrect);
- constexpr2 static void setFormat(SDL_PixelFormat *const format)
- noexcept2
+ static void setFormat(SDL_PixelFormat *const format) noexcept2
{
mFormat = format;
if (mFormat)
diff --git a/src/resources/surfaceimagehelper.cpp b/src/resources/surfaceimagehelper.cpp
index e74c34477..b0e9548a6 100644
--- a/src/resources/surfaceimagehelper.cpp
+++ b/src/resources/surfaceimagehelper.cpp
@@ -73,11 +73,6 @@ Image *SurfaceImageHelper::_SDLload(SDL_Surface *tmpImage) const
return new Image(image, false, nullptr);
}
-RenderType SurfaceImageHelper::useOpenGL() const
-{
- return RENDER_SOFTWARE;
-}
-
int SurfaceImageHelper::combineSurface(SDL_Surface *restrict const src,
SDL_Rect *restrict const srcrect,
SDL_Surface *restrict const dst,
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;