- changed a bit more stuff that doesn't need to be routed through the OpenGL interface anymore.
This commit is contained in:
parent
f7c7c8d1c5
commit
54de0bf59f
22 changed files with 70 additions and 104 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue