diff --git a/src/guiengine/widgets/icon_button_widget.cpp b/src/guiengine/widgets/icon_button_widget.cpp index ab7188c18..730710f4d 100644 --- a/src/guiengine/widgets/icon_button_widget.cpp +++ b/src/guiengine/widgets/icon_button_widget.cpp @@ -332,7 +332,7 @@ const video::ITexture* IconButtonWidget::getTexture() // ----------------------------------------------------------------------------- video::ITexture* IconButtonWidget::getDeactivatedTexture(video::ITexture* texture) { -#ifndef SERVER_ONLY +#if !defined(SERVER_ONLY) && !defined(USE_GLES2) STKTexture* stk_tex = static_cast(texture); // Compressed texture can't be turned into greyscale if (stk_tex->isMeshTexture() && CVS->isTextureCompressionEnabled())