Fix video underlay issue 37/206037/6
authorhuiyu.eun <huiyu.eun@samsung.com>
Mon, 13 May 2019 10:47:59 +0000 (19:47 +0900)
committerSunghyun kim <scholb.kim@samsung.com>
Tue, 23 Jul 2019 04:05:50 +0000 (13:05 +0900)
Change-Id: I07fef8ee31bdc31acd68a4f1a7e34836a109ec60
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali/internal/graphics/gles/egl-implementation.cpp

index 7004f17..3885134 100755 (executable)
@@ -331,8 +331,6 @@ bool EglImplementation::ChooseConfig( bool isWindowType, ColorDepth depth )
     return true;
   }
 
-  bool isTransparent = ( depth == COLOR_DEPTH_32 );
-
   mColorDepth = depth;
   mIsWindow = isWindowType;
 
@@ -373,18 +371,9 @@ bool EglImplementation::ChooseConfig( bool isWindowType, ColorDepth depth )
   configAttribs.PushBack( EGL_BLUE_SIZE );
   configAttribs.PushBack( 8 );
 
-  if ( isTransparent )
-  {
-    configAttribs.PushBack( EGL_ALPHA_SIZE );
-#ifdef _ARCH_ARM_
-    // For underlay video playback, we also need to set the alpha value of the 24/32bit window.
-    configAttribs.PushBack( 8 );
-#else
-    // There is a bug in the desktop emulator
-    // setting EGL_ALPHA_SIZE to 8 results in eglChooseConfig failing
-    configAttribs.PushBack( 8 );
-#endif // _ARCH_ARM_
-  }
+//  For underlay video playback, we also need to set the alpha value of the 24/32bit window.
+  configAttribs.PushBack( EGL_ALPHA_SIZE );
+  configAttribs.PushBack( 8 );
 
   configAttribs.PushBack( EGL_DEPTH_SIZE );
   configAttribs.PushBack( mDepthBufferRequired ? 24 : 0 );