- changed a bit more stuff that doesn't need to be routed through the OpenGL interface anymore.

This commit is contained in:
Christoph Oelckers 2018-10-28 14:25:29 +01:00
commit 54de0bf59f
22 changed files with 70 additions and 104 deletions

View file

@ -77,7 +77,7 @@ void GLViewpointBuffer::Set2D(HWDrawInfo *di, int width, int height)
{
HWViewpointUniforms matrices;
matrices.SetDefaults();
matrices.mProjectionMatrix.ortho(0, width, height, 0, -1.0f, 1.0f);
matrices.mProjectionMatrix.ortho(0, (float)width, (float)height, 0, -1.0f, 1.0f);
matrices.CalcDependencies();
mBuffer->Map();
memcpy(mBuffer->Memory(), &matrices, sizeof(matrices));