[Tizen] Do not call glInvalidateFramebuffer for DEPTH only TV profile 45/320145/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 24 Feb 2025 11:20:49 +0000 (20:20 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 24 Feb 2025 11:24:41 +0000 (20:24 +0900)
Change-Id: Id7acc34b8b7339c2cf9580c2960a2f475c8da1f7
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/graphics/gles-impl/gles-context.cpp

index 6e6ecc451bd852913a282314ceee32dc808483f8..11c1004b51f20ff6f02561ad1dbdd0bf81921b1d 100644 (file)
@@ -1005,17 +1005,15 @@ void Context::ClearBuffer(uint32_t mask, bool forceClear)
 
 void Context::InvalidateDepthStencilBuffers()
 {
+#ifndef DALI_PROFILE_TV
   if(auto* gl = mImpl->GetGL())
   {
-#ifndef DALI_PROFILE_TV
     GLenum attachments[] = {GL_DEPTH, GL_STENCIL};
     gl->InvalidateFramebuffer(GL_FRAMEBUFFER, 2, attachments);
+  }
 #else
-    // Since TV driver throw useless gles error when we use GL_STENCIL to framebuffer, let we don't invalidate STENCIL for TV. 2025-02-24 eunkiki.hong@samsung.com
-    GLenum attachments[] = {GL_DEPTH};
-    gl->InvalidateFramebuffer(GL_FRAMEBUFFER, 1, attachments);
+  // Since TV driver throw useless gles error when we use GL_STENCIL and GL_DEPTH to framebuffer, let we don't invalidate framebuffer for TV. 2025-02-24 eunkiki.hong@samsung.com
 #endif
-  }
 }
 
 void Context::SetScissorTestEnabled(bool scissorEnabled)