Fixed GetDouble implementation to return correct values (should call GetDouble not GetFloat!) Fixes issue [#1235]: "Matrix4d wrong value on GL.GetDouble".

This commit is contained in:
the_fiddler 2009-10-15 14:37:26 +00:00
parent 6a0b75d67c
commit 723a0dccf2

View file

@ -1013,7 +1013,7 @@ namespace OpenTK.Graphics.OpenGL
unsafe
{
fixed (Vector2d* ptr = &vector)
GetFloat(pname, (float*)ptr);
GetDouble(pname, (double*)ptr);
}
}
@ -1022,7 +1022,7 @@ namespace OpenTK.Graphics.OpenGL
unsafe
{
fixed (Vector3d* ptr = &vector)
GetFloat(pname, (float*)ptr);
GetDouble(pname, (double*)ptr);
}
}
@ -1031,7 +1031,7 @@ namespace OpenTK.Graphics.OpenGL
unsafe
{
fixed (Vector4d* ptr = &vector)
GetFloat(pname, (float*)ptr);
GetDouble(pname, (double*)ptr);
}
}
@ -1040,7 +1040,7 @@ namespace OpenTK.Graphics.OpenGL
unsafe
{
fixed (Matrix4d* ptr = &matrix)
GetFloat(pname, (float*)ptr);
GetDouble(pname, (double*)ptr);
}
}