From 2c7cd98f179067a40a9f4b3e30b0af52d6c9da47 Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Fri, 27 Aug 2021 13:25:23 +0100 Subject: [PATCH] Fix SVACE errors in Graphics Backend Change-Id: I64b21bef750b84777af3c2438ba3f853c7c416db --- .../src/dali/dali-test-suite-utils/test-graphics-buffer.cpp | 2 +- dali/internal/render/renderers/render-geometry.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-buffer.cpp b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-buffer.cpp index 21eecf414..83b7899b3 100644 --- a/automated-tests/src/dali/dali-test-suite-utils/test-graphics-buffer.cpp +++ b/automated-tests/src/dali/dali-test-suite-utils/test-graphics-buffer.cpp @@ -65,7 +65,7 @@ void TestGraphicsBuffer::Upload(uint32_t offset, uint32_t size) } else { - mGl.BufferData(GetTarget(), size, &memory[0], GL_STATIC_DRAW); //@todo Query - do we need other usages? + mGl.BufferData(GetTarget(), GLsizeiptr(size), &memory[0], GL_STATIC_DRAW); //@todo Query - do we need other usages? mCreated = true; } } diff --git a/dali/internal/render/renderers/render-geometry.cpp b/dali/internal/render/renderers/render-geometry.cpp index 1ccd49a49..e12f37b6b 100644 --- a/dali/internal/render/renderers/render-geometry.cpp +++ b/dali/internal/render/renderers/render-geometry.cpp @@ -159,7 +159,7 @@ bool Geometry::Draw( if(elementBufferOffset != 0u) { elementBufferOffset = (elementBufferOffset >= numIndices) ? numIndices - 1 : elementBufferOffset; - firstIndexOffset = elementBufferOffset * sizeof(uint16_t); + firstIndexOffset = intptr_t(elementBufferOffset * sizeof(uint16_t)); numIndices -= elementBufferOffset; } -- 2.34.1