mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 20:55:37 +00:00
Avoid using deprecated methods.
This commit is contained in:
parent
286f6f9439
commit
823fd29ce7
|
@ -932,7 +932,7 @@ namespace OpenTK.Graphics.OpenGL
|
||||||
|
|
||||||
public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, System.Drawing.Color color)
|
public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, System.Drawing.Color color)
|
||||||
{
|
{
|
||||||
Color4 c = new Color4(color);
|
Color4 c = new Color4(color.R, color.G, color.B, color.A);
|
||||||
unsafe
|
unsafe
|
||||||
{
|
{
|
||||||
TexEnv(target, pname, &c.R);
|
TexEnv(target, pname, &c.R);
|
||||||
|
|
Loading…
Reference in a new issue