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
9409ee6917
commit
4f3ee52668
2 changed files with 2 additions and 1 deletions
|
@ -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