Kaynağa Gözat

Changed std::addressof to cast. Fixes compiler error on BB10

seanpaultaylor 11 yıl önce
ebeveyn
işleme
44c8debc8b
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      gameplay/src/Texture.cpp

+ 1 - 1
gameplay/src/Texture.cpp

@@ -854,7 +854,7 @@ void Texture::generateMipmaps()
     {
         GL_ASSERT( glBindTexture(GL_TEXTURE_2D, _handle) );
         GL_ASSERT( glHint(GL_GENERATE_MIPMAP_HINT, GL_NICEST) );
-        if (std::addressof(glGenerateMipmap))
+        if (glGenerateMipmap)
             GL_ASSERT( glGenerateMipmap(GL_TEXTURE_2D) );
 
         _mipmapped = true;