From a274f217ed8c300d1618177f28afef9a4358e957 Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 11 Mar 2017 15:41:54 +0800 Subject: [PATCH] Fix build --- src/graphics/stk_texture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/stk_texture.cpp b/src/graphics/stk_texture.cpp index 5df45ebaa..0090db81a 100644 --- a/src/graphics/stk_texture.cpp +++ b/src/graphics/stk_texture.cpp @@ -603,11 +603,13 @@ void STKTexture::threadedReload(void* ptr, void* param) const //----------------------------------------------------------------------------- void STKTexture::threadedSubImage(void* ptr) const { +#if !(defined(SERVER_ONLY) || defined(USE_GLES2)) glBindTexture(GL_TEXTURE_2D, m_texture_name); glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, m_size.Width, m_size.Height, m_single_channel ? GL_RED : GL_BGRA, GL_UNSIGNED_BYTE, ptr); if (hasMipMaps()) glGenerateMipmap(GL_TEXTURE_2D); +#endif } // threadedSubImage //-----------------------------------------------------------------------------