Use rgba textures instead of alpha on SavagePro/Twister renderers. Workaround for bug [#833] "TextPrinter problem" (http://www.opentk.com/node/833).
This commit is contained in:
parent
f2b1fb20da
commit
466e4af8f5
1 changed files with 11 additions and 3 deletions
|
@ -22,8 +22,6 @@ namespace OpenTK.Graphics.Text
|
|||
this.quality = TextQuality.Medium;
|
||||
else
|
||||
this.quality = quality;
|
||||
|
||||
cache = new GlyphCache<AlphaTexture2D>();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@ -47,7 +45,17 @@ namespace OpenTK.Graphics.Text
|
|||
|
||||
protected override GlyphCache Cache
|
||||
{
|
||||
get { return cache; }
|
||||
get
|
||||
{
|
||||
if (cache == null)
|
||||
{
|
||||
if (GL.GetString(StringName.Renderer).Contains("ProSavage/Twister"))
|
||||
cache = new GlyphCache<RgbaTexture2D>();
|
||||
else
|
||||
cache = new GlyphCache<AlphaTexture2D>();
|
||||
}
|
||||
return cache;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue