mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 12:21:06 +00:00
Applied rdrake's patch:
* fixes output with TextQuality.High and a non-white current color. * pushes/pops CurrentBit attribute when rendering text.
This commit is contained in:
parent
f0a0678be0
commit
18a6ad3247
|
@ -32,6 +32,7 @@ namespace OpenTK.Graphics.Text
|
|||
|
||||
protected override void SetColor(Color color)
|
||||
{
|
||||
GL.Color3(Color.White);
|
||||
GL.BlendColor(color);
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ namespace OpenTK.Graphics.Text
|
|||
|
||||
public void Print(TextBlock block, Color color, IGlyphRasterizer rasterizer)
|
||||
{
|
||||
GL.PushAttrib(AttribMask.TextureBit | AttribMask.EnableBit | AttribMask.ColorBufferBit | AttribMask.DepthBufferBit);
|
||||
GL.PushAttrib(AttribMask.CurrentBit | AttribMask.TextureBit | AttribMask.EnableBit | AttribMask.ColorBufferBit | AttribMask.DepthBufferBit);
|
||||
|
||||
GL.Enable(EnableCap.Texture2D);
|
||||
GL.Enable(EnableCap.Blend);
|
||||
|
|
Loading…
Reference in a new issue