summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index 8bf41aa4c..900d0348f 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -42,7 +42,8 @@
#include "debug.h"
#ifdef USE_SDL2
-Image::Image(SDL_Texture *const image, const int width, const int height) :
+Image::Image(SDL_Texture *restrict const image,
+ const int width, const int height) :
Resource(),
#ifdef USE_OPENGL
mGLImage(0),
@@ -85,8 +86,8 @@ Image::Image(SDL_Texture *const image, const int width, const int height) :
}
#endif
-Image::Image(SDL_Surface *const image, const bool hasAlphaChannel0,
- uint8_t *const alphaChannel) :
+Image::Image(SDL_Surface *restrict const image, const bool hasAlphaChannel0,
+ uint8_t *restrict const alphaChannel) :
Resource(),
#ifdef USE_OPENGL
mGLImage(0),