mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 09:15:36 +00:00
Color4Serialization example now correctly prints its output messages.
This commit is contained in:
parent
e9d7d147d8
commit
9a4bf6ab79
|
@ -25,11 +25,9 @@
|
||||||
//
|
//
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
using OpenTK;
|
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
|
|
||||||
namespace Examples.Tests
|
namespace Examples.Tests
|
||||||
|
@ -48,9 +46,9 @@ namespace Examples.Tests
|
||||||
xs.Serialize(stream, color);
|
xs.Serialize(stream, color);
|
||||||
stream.Seek(0, SeekOrigin.Begin);
|
stream.Seek(0, SeekOrigin.Begin);
|
||||||
color2 = (Color4)xs.Deserialize(stream);
|
color2 = (Color4)xs.Deserialize(stream);
|
||||||
Console.WriteLine(color);
|
Trace.WriteLine(color);
|
||||||
Console.WriteLine(color2);
|
Trace.WriteLine(color2);
|
||||||
Console.WriteLine(color.Equals(color2));
|
Trace.WriteLine(color.Equals(color2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue