Add Pixel format for depth and stencil 07/230907/3
authorSeungho, Baek <sbsh.baek@samsung.com>
Thu, 16 Apr 2020 03:47:47 +0000 (12:47 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Mon, 20 Apr 2020 05:19:05 +0000 (14:19 +0900)
 - add cases on the switch to control pixel enum

Change-Id: Ib9c88d92926263e24fbd18c9bbed17ee76559a71
Signed-off-by: Seungho, Baek <sbsh.baek@samsung.com>
dali-toolkit/internal/visuals/npatch-loader.cpp

index 6745adf..0c6409d 100644 (file)
@@ -147,6 +147,9 @@ void GetRedOffsetAndMask( Dali::Pixel::Format pixelFormat, int& byteOffset, int&
     }
     case Dali::Pixel::RGB16F:
     case Dali::Pixel::RGB32F:
     }
     case Dali::Pixel::RGB16F:
     case Dali::Pixel::RGB32F:
+    case Dali::Pixel::DEPTH_UNSIGNED_INT:
+    case Dali::Pixel::DEPTH_FLOAT:
+    case Dali::Pixel::DEPTH_STENCIL:
     {
       DALI_LOG_ERROR("Pixel format not compatible.\n");
       byteOffset=0;
     {
       DALI_LOG_ERROR("Pixel format not compatible.\n");
       byteOffset=0;