mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 14:21:07 +00:00
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
|
@ -1013,7 +1013,7 @@ namespace OpenTK.Graphics.OpenGL
|
||||||
unsafe
|
unsafe
|
||||||
{
|
{
|
||||||
fixed (Vector2d* ptr = &vector)
|
fixed (Vector2d* ptr = &vector)
|
||||||
GetFloat(pname, (float*)ptr);
|
GetDouble(pname, (double*)ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1022,7 +1022,7 @@ namespace OpenTK.Graphics.OpenGL
|
||||||
unsafe
|
unsafe
|
||||||
{
|
{
|
||||||
fixed (Vector3d* ptr = &vector)
|
fixed (Vector3d* ptr = &vector)
|
||||||
GetFloat(pname, (float*)ptr);
|
GetDouble(pname, (double*)ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1031,7 +1031,7 @@ namespace OpenTK.Graphics.OpenGL
|
||||||
unsafe
|
unsafe
|
||||||
{
|
{
|
||||||
fixed (Vector4d* ptr = &vector)
|
fixed (Vector4d* ptr = &vector)
|
||||||
GetFloat(pname, (float*)ptr);
|
GetDouble(pname, (double*)ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1040,7 +1040,7 @@ namespace OpenTK.Graphics.OpenGL
|
||||||
unsafe
|
unsafe
|
||||||
{
|
{
|
||||||
fixed (Matrix4d* ptr = &matrix)
|
fixed (Matrix4d* ptr = &matrix)
|
||||||
GetFloat(pname, (float*)ptr);
|
GetDouble(pname, (double*)ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue