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:
parent
6a0b75d67c
commit
723a0dccf2
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue