summaryrefslogtreecommitdiff
path: root/src/resources/safeopenglimagehelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/safeopenglimagehelper.cpp')
-rw-r--r--src/resources/safeopenglimagehelper.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/safeopenglimagehelper.cpp b/src/resources/safeopenglimagehelper.cpp
index 7c273829e..962d1434a 100644
--- a/src/resources/safeopenglimagehelper.cpp
+++ b/src/resources/safeopenglimagehelper.cpp
@@ -41,6 +41,7 @@
#include "resources/image/image.h"
+#include "utils/performance.h"
#include "utils/sdlcheckutils.h"
#include "debug.h"
@@ -83,14 +84,14 @@ Image *SafeOpenGLImageHelper::load(SDL_RWops *const rw,
{
case 1:
{
- const DyePalette *const pal = dye.getSPalete();
+ const DyePalette *const pal = dye.getSPalette();
if (pal != nullptr)
DYEPALETTEP(pal, SOGLColor)(pixels, surf->w * surf->h);
break;
}
case 2:
{
- const DyePalette *const pal = dye.getAPalete();
+ const DyePalette *const pal = dye.getAPalette();
if (pal != nullptr)
DYEPALETTEP(pal, AOGLColor)(pixels, surf->w * surf->h);
break;