fix more matrix sense snafus
This commit is contained in:
parent
cb5c21f8d3
commit
cb5c49d11b
|
@ -388,7 +388,7 @@ namespace BizHawk.Client.EmuHawk.Filters
|
|||
if (renderTop)
|
||||
{
|
||||
GuiRenderer.Modelview.Push();
|
||||
GuiRenderer.Modelview.PostMultiplyMatrix(matTop);
|
||||
GuiRenderer.Modelview.PreMultiplyMatrix(matTop);
|
||||
GuiRenderer.DrawSubrect(InputTexture, 0, 0, 256, 192, 0.0f, 0.0f, 1.0f, 0.5f);
|
||||
GuiRenderer.Modelview.Pop();
|
||||
}
|
||||
|
@ -396,7 +396,7 @@ namespace BizHawk.Client.EmuHawk.Filters
|
|||
if (renderBottom)
|
||||
{
|
||||
GuiRenderer.Modelview.Push();
|
||||
GuiRenderer.Modelview.PostMultiplyMatrix(matBot);
|
||||
GuiRenderer.Modelview.PreMultiplyMatrix(matBot);
|
||||
GuiRenderer.DrawSubrect(InputTexture, 0, 0, 256, 192, 0.0f, 0.5f, 1.0f, 1.0f);
|
||||
GuiRenderer.Modelview.Pop();
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ namespace BizHawk.Bizware.BizwareGL
|
|||
public void Translate(Point pt) { Translate(pt.X, pt.Y, 0); IsDirty = true; }
|
||||
|
||||
public void PostMultiplyMatrix(MatrixStack ms) { PostMultiplyMatrix(ms.Top); IsDirty = true; }
|
||||
public void PostMultiplyMatrix(Matrix4 value) { Top = value * Top; IsDirty = true; }
|
||||
public void PreMultiplyMatrix(Matrix4 value) { Top = Top * value; IsDirty = true; }
|
||||
public void PostMultiplyMatrix(Matrix4 value) { Top = Top * value; IsDirty = true; }
|
||||
public void PreMultiplyMatrix(Matrix4 value) { Top = value * Top; IsDirty = true; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue