From 3baf50535172bec3d4277d73b17ea0040425e9f6 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 24 Nov 2024 13:47:24 +0100 Subject: [PATCH] Fixed an incorrect width and height calculation in the renderer --- es-core/src/renderers/RendererOpenGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/renderers/RendererOpenGL.cpp b/es-core/src/renderers/RendererOpenGL.cpp index 29f6ccb35..9b78fab4f 100644 --- a/es-core/src/renderers/RendererOpenGL.cpp +++ b/es-core/src/renderers/RendererOpenGL.cpp @@ -500,8 +500,8 @@ void RendererOpenGL::drawTriangleStrips(const Vertex* vertices, const BlendFactor srcBlendFactor, const BlendFactor dstBlendFactor) { - const float width {vertices[3].position[0]}; - const float height {vertices[3].position[1]}; + const float width {vertices[3].position[0] - vertices[1].position[0]}; + const float height {vertices[3].position[1] - vertices[2].position[1]}; GL_CHECK_ERROR( glBlendFunc(convertBlendFactor(srcBlendFactor), convertBlendFactor(dstBlendFactor)));