From f37470c61e9913ff7ace2595de604c85f42b0e10 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 Dec 2016 20:30:44 +0300 Subject: Dont build OpenGL dye functions if OpenGL disabled. --- src/resources/dye/dyepalette.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/resources/dye/dyepalette.h') diff --git a/src/resources/dye/dyepalette.h b/src/resources/dye/dyepalette.h index 07085e7b6..4cbfa3efc 100644 --- a/src/resources/dye/dyepalette.h +++ b/src/resources/dye/dyepalette.h @@ -115,6 +115,7 @@ class DyePalette final const int bufSize) const restrict2; #endif // SIMD_SUPPORTED +#ifdef USE_OPENGL /** * replace colors for OpenGL for S dye. */ @@ -170,6 +171,7 @@ class DyePalette final void replaceAOGLColorSimd(uint32_t *restrict pixels, const int bufSize) const restrict2; #endif // SIMD_SUPPORTED +#endif // USE_OPENGL static unsigned int hexDecode(const signed char c) noexcept2 A_CONST A_WARN_UNUSED; -- cgit v1.2.3-60-g2f50