mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-09-15 16:27:05 +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
8628ef580f
commit
40aae28300
|
@ -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