Fix static analysis issue 68/262568/3
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 13 Aug 2021 08:21:41 +0000 (17:21 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 20 Aug 2021 02:36:00 +0000 (11:36 +0900)
- The type of pixelDataType is unsigned.

Change-Id: I13e7b2fa79217bfd6502164f5957a02f6a0cb6ac

dali/integration-api/bitmap.cpp

index 5f6a013..4491800 100644 (file)
@@ -36,7 +36,7 @@ using namespace Dali::Pixel;
 void ConvertToGlFormat(Format pixelformat, unsigned& pixelDataType, unsigned& internalFormat)
 {
   // Compressed textures have no pixelDataType, so init to an invalid value:
-  pixelDataType = -1;
+  pixelDataType = GL_INVALID_VALUE;
 
   switch(pixelformat)
   {