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>
{
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
}
}