Revert "[Non-ACR][NUI] Fix PixelData crash issue" 13/204613/1
authorhuiyu.eun <huiyu.eun@samsung.com>
Thu, 25 Apr 2019 02:27:47 +0000 (11:27 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Thu, 25 Apr 2019 02:36:15 +0000 (11:36 +0900)
This reverts commit 426105965cee8270fed05b9da180699b36cf0ec8.

Change-Id: I637d4a66671e5d966698401a2bce31dbe35800f1

tct-suite-vs/Tizen.NUI.Tests/testcase/TSTexture.cs

index 990b091..5303b6f 100755 (executable)
@@ -110,7 +110,8 @@ namespace Tizen.NUI.Tests
                 uint height = 64;
                 Texture texture = new Texture(TextureType.TEXTURE_2D, PixelFormat.RGBA8888, width, height);
                 uint bufferSize = width * height * 4;\r
-                PixelData pixelData = new PixelData(null, bufferSize, width, height, PixelFormat.RGBA8888, PixelData.ReleaseFunction.Free);\r
+                byte[] buffer = new byte[bufferSize];\r
+                PixelData pixelData = new PixelData(buffer, bufferSize, width, height, PixelFormat.RGBA8888, PixelData.ReleaseFunction.Free);\r
                 texture.Upload(pixelData);
             }
             catch (Exception e)
@@ -138,7 +139,8 @@ namespace Tizen.NUI.Tests
                 uint height = 64;
                 Texture texture = new Texture(TextureType.TEXTURE_2D, PixelFormat.RGBA8888, width, height);
                 uint bufferSize = width * height * 2;\r
-                PixelData pixelData = new PixelData(null, bufferSize, width, height, PixelFormat.RGBA8888, PixelData.ReleaseFunction.Free);
+                byte[] buffer = new byte[bufferSize];\r
+                PixelData pixelData = new PixelData(buffer, bufferSize, width, height, PixelFormat.RGBA8888, PixelData.ReleaseFunction.Free);
                 texture.Upload(pixelData, 0u, 0u, width / 2, height / 2, width / 2, height / 2);
             }
             catch (Exception e)