Ignore mipmap generation when texture format compressed
[platform/core/uifw/dali-core.git] / dali / internal / render / renderers / render-texture.cpp
index 3c8e040..5e39b71 100644 (file)
@@ -347,6 +347,12 @@ void Texture::GenerateMipmaps()
 {
   DALI_ASSERT_ALWAYS(mResourceId == 0u);
 
+  // Compressed pixel doesn't support mipmap generation.
+  if(Pixel::IsCompressed(mPixelFormat))
+  {
+    return;
+  }
+
   if(!mGraphicsTexture)
   {
     Create(static_cast<Graphics::TextureUsageFlags>(Graphics::TextureUsageFlagBits::SAMPLE));