mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Fixed an incorrect width and height calculation in the renderer
This commit is contained in:
parent
26b7945171
commit
3baf505351
|
@ -500,8 +500,8 @@ void RendererOpenGL::drawTriangleStrips(const Vertex* vertices,
|
||||||
const BlendFactor srcBlendFactor,
|
const BlendFactor srcBlendFactor,
|
||||||
const BlendFactor dstBlendFactor)
|
const BlendFactor dstBlendFactor)
|
||||||
{
|
{
|
||||||
const float width {vertices[3].position[0]};
|
const float width {vertices[3].position[0] - vertices[1].position[0]};
|
||||||
const float height {vertices[3].position[1]};
|
const float height {vertices[3].position[1] - vertices[2].position[1]};
|
||||||
|
|
||||||
GL_CHECK_ERROR(
|
GL_CHECK_ERROR(
|
||||||
glBlendFunc(convertBlendFactor(srcBlendFactor), convertBlendFactor(dstBlendFactor)));
|
glBlendFunc(convertBlendFactor(srcBlendFactor), convertBlendFactor(dstBlendFactor)));
|
||||||
|
|
Loading…
Reference in a new issue