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:
the_fiddler 2009-02-14 08:12:14 +00:00
parent 9409ee6917
commit 4f3ee52668
2 changed files with 2 additions and 1 deletions

View file

@ -32,6 +32,7 @@ namespace OpenTK.Graphics.Text
protected override void SetColor(Color color)
{
GL.Color3(Color.White);
GL.BlendColor(color);
}

View file

@ -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);