From: Adeel Kazmi Date: Tue, 5 Dec 2023 16:37:55 +0000 (+0000) Subject: [Tizen] Fixed SVACE errors X-Git-Tag: accepted/tizen/8.0/unified/20231214.075334~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccaba0b3b21c0957d6eb2ddc713b45c14ba187db;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git [Tizen] Fixed SVACE errors Change-Id: Ie5f9420aee93ffc35136378926328934c9b39045 --- diff --git a/dali-physics/internal/bullet-impl/bullet-physics-debug-renderer.cpp b/dali-physics/internal/bullet-impl/bullet-physics-debug-renderer.cpp index 3b5d390..f7b7db1 100644 --- a/dali-physics/internal/bullet-impl/bullet-physics-debug-renderer.cpp +++ b/dali-physics/internal/bullet-impl/bullet-physics-debug-renderer.cpp @@ -197,7 +197,7 @@ void PhysicsDebugRenderer::RenderLines(const Dali::RenderCallbackInput& input) // But, it appears to be bugged. glBindBuffer(GL_ARRAY_BUFFER, mBufferId); - glBufferData(GL_ARRAY_BUFFER, mLines.size() * sizeof(VertexLine), &mLines[0], GL_STATIC_DRAW); + glBufferData(GL_ARRAY_BUFFER, GLsizeiptr(mLines.size() * sizeof(VertexLine)), &mLines[0], GL_STATIC_DRAW); glVertexAttribPointer(mVertexLocation, 3, GL_FLOAT, GL_FALSE, 24, 0); glEnableVertexAttribArray(mVertexLocation); diff --git a/dali-physics/internal/chipmunk-impl/chipmunk-physics-debug-renderer.cpp b/dali-physics/internal/chipmunk-impl/chipmunk-physics-debug-renderer.cpp index 8331e14..9c776c6 100644 --- a/dali-physics/internal/chipmunk-impl/chipmunk-physics-debug-renderer.cpp +++ b/dali-physics/internal/chipmunk-impl/chipmunk-physics-debug-renderer.cpp @@ -267,9 +267,9 @@ void PhysicsDebugRenderer::RenderLines(const Dali::RenderCallbackInput& input) glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBufferId); - glBufferData(GL_ELEMENT_ARRAY_BUFFER, mIndices.size() * sizeof(uint16_t), &mIndices[0], GL_STATIC_DRAW); + glBufferData(GL_ELEMENT_ARRAY_BUFFER, GLsizeiptr(mIndices.size() * sizeof(uint16_t)), &mIndices[0], GL_STATIC_DRAW); glBindBuffer(GL_ARRAY_BUFFER, mVertexBufferId); - glBufferData(GL_ARRAY_BUFFER, mVertices.size() * sizeof(Vertex), &mVertices[0], GL_STATIC_DRAW); + glBufferData(GL_ARRAY_BUFFER, GLsizeiptr(mVertices.size() * sizeof(Vertex)), &mVertices[0], GL_STATIC_DRAW); GLint stride = 52; // 4*(2 + 2 + 1 + 4 + 4) = 4*13=52 glVertexAttribPointer(mPositionLocation, 2, GL_FLOAT, GL_FALSE, stride, 0);