Fixed GL1.1 fallback when GL.BlendColor is not supported.

This commit is contained in:
the_fiddler 2009-02-28 22:33:30 +00:00
parent 8112f6df52
commit 74d5fc8f40

View file

@ -244,7 +244,7 @@ namespace OpenTK.Graphics.Text
public static GL1TextOutputProvider Create(TextQuality quality) public static GL1TextOutputProvider Create(TextQuality quality)
{ {
if (!GL.SupportsFunction("BlendFunc") || quality == TextQuality.Low || quality == TextQuality.Medium) if (!GL.SupportsExtension("Version12") || !GL.SupportsFunction("BlendColor") || quality == TextQuality.Low || quality == TextQuality.Medium)
return new GL11TextOutputProvider(quality); return new GL11TextOutputProvider(quality);
else else
return new GL12TextOutputProvider(quality); return new GL12TextOutputProvider(quality);