[Tizen] Fix incorrect rotation angle. 79/256379/2 accepted/tizen/unified/20210406.083602 submit/tizen/20210405.224913
authorWonsik Jung <sidein@samsung.com>
Thu, 1 Apr 2021 13:03:15 +0000 (22:03 +0900)
committerWonsik Jung <sidein@samsung.com>
Thu, 1 Apr 2021 22:36:12 +0000 (07:36 +0900)
Fix incorrect rotation angle for setting glViewport.

Change-Id: Ifce2acbcfc3122adbee56284b004da61d5f76910

dali/internal/render/common/render-algorithms.cpp

index ad69716214b19afa5ba9f99905abdfc4a0d9b2a5..5aa3c14e6ab11632ad518839d326abc56ec666eb 100644 (file)
@@ -55,7 +55,7 @@ inline Graphics::Viewport ViewportFromClippingBox(ClippingBox clippingBox, int o
 {
   Graphics::Viewport viewport{static_cast<float>(clippingBox.x), static_cast<float>(clippingBox.y), static_cast<float>(clippingBox.width), static_cast<float>(clippingBox.height), 0.0f, 0.0f};
 
-  if(orientation == 80 || orientation == 270)
+  if(orientation == 90 || orientation == 270)
   {
     viewport.width  = static_cast<float>(clippingBox.height);
     viewport.height = static_cast<float>(clippingBox.width);