Avoid using deprecated methods.

This commit is contained in:
the_fiddler 2010-10-28 09:00:36 +00:00
parent 5cc81e0449
commit 681e19f704

View file

@ -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);