mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-16 16:37:34 +00:00
Ported fix for bug [#1005]: Using TextPrinterOptions.Default does not allow text to change color
This commit is contained in:
parent
3824d5b2c1
commit
884ede2c9d
|
@ -88,6 +88,8 @@ namespace OpenTK.Graphics.Text
|
||||||
|
|
||||||
RectangleF position;
|
RectangleF position;
|
||||||
|
|
||||||
|
SetColor(color);
|
||||||
|
|
||||||
int block_hash = block.GetHashCode();
|
int block_hash = block.GetHashCode();
|
||||||
if (block_cache.ContainsKey(block_hash))
|
if (block_cache.ContainsKey(block_hash))
|
||||||
{
|
{
|
||||||
|
@ -166,8 +168,6 @@ namespace OpenTK.Graphics.Text
|
||||||
|
|
||||||
key.Bind();
|
key.Bind();
|
||||||
|
|
||||||
SetColor(color);
|
|
||||||
|
|
||||||
GL.Begin(BeginMode.Triangles);
|
GL.Begin(BeginMode.Triangles);
|
||||||
|
|
||||||
for (int i = 0; i < list.Count; i += 2)
|
for (int i = 0; i < list.Count; i += 2)
|
||||||
|
|
Loading…
Reference in a new issue