[Tizen] Do not call glInvalidateFramebuffer for STENCIL only TV profile 26/320126/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 24 Feb 2025 08:38:47 +0000 (17:38 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 24 Feb 2025 08:43:07 +0000 (17:43 +0900)
Since TV graphic driver might have some issue, it print
some useless gles_error logs when we call glInvalidateFramebuffer with GL_STENCIL.

This log show only for TV case. So let we just ignore them, so reduce GPU
overhead.

Change-Id: If3f10acdc345dfc5c20b7a156dc92d4a2d341e2a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/graphics/gles-impl/gles-context.cpp

index 11a45b050fc95226469dc6fc6e855a726730c369..6e6ecc451bd852913a282314ceee32dc808483f8 100644 (file)
@@ -1007,8 +1007,14 @@ void Context::InvalidateDepthStencilBuffers()
 {
   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);
+#endif
   }
 }