mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Reverted a removal of vertex rounding during the project matrix calculation.
This commit is contained in:
parent
947ab458ae
commit
455b970a59
|
@ -239,7 +239,7 @@ bool RendererOpenGL::createContext()
|
|||
GL_CHECK_ERROR(glGenVertexArrays(1, &mVertexBuffer2));
|
||||
GL_CHECK_ERROR(glBindVertexArray(mVertexBuffer2));
|
||||
|
||||
uint8_t data[4] = {255, 255, 255, 255};
|
||||
uint8_t data[4] {255, 255, 255, 255};
|
||||
mWhiteTexture = createTexture(TextureType::RGBA, false, false, true, 1, 1, data);
|
||||
|
||||
mPostProcTexture1 = createTexture(TextureType::RGBA, false, false, false,
|
||||
|
@ -277,8 +277,9 @@ void RendererOpenGL::destroyContext()
|
|||
|
||||
void RendererOpenGL::setMatrix(const glm::mat4& matrix)
|
||||
{
|
||||
// Calculate the project matrix.
|
||||
mTrans = getProjectionMatrix() * matrix;
|
||||
mTrans = matrix;
|
||||
mTrans[3] = glm::round(mTrans[3]);
|
||||
mTrans = getProjectionMatrix() * mTrans;
|
||||
}
|
||||
|
||||
void RendererOpenGL::setScissor(const Rect& scissor)
|
||||
|
|
Loading…
Reference in a new issue