|
|
@ -94,8 +94,8 @@ static void ImImpl_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_c
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{ 2.0f/(R-L), 0.0f, 0.0f, 0.0f},
|
|
|
|
{ 2.0f/(R-L), 0.0f, 0.0f, 0.0f},
|
|
|
|
{ 0.0f, 2.0f/(T-B), 0.0f, 0.0f,},
|
|
|
|
{ 0.0f, 2.0f/(T-B), 0.0f, 0.0f,},
|
|
|
|
{ 0.0f, 0.0f, 0.5f, 0.0f }, // -1.0f
|
|
|
|
{ 0.0f, 0.0f, 0.5f, 0.0f },
|
|
|
|
{ (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, // 0.0f
|
|
|
|
{ (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f },
|
|
|
|
};
|
|
|
|
};
|
|
|
|
memcpy(&pConstantBuffer->mvp, mvp, sizeof(mvp));
|
|
|
|
memcpy(&pConstantBuffer->mvp, mvp, sizeof(mvp));
|
|
|
|
g_pd3dDeviceImmediateContext->Unmap(g_pVertexConstantBuffer, 0);
|
|
|
|
g_pd3dDeviceImmediateContext->Unmap(g_pVertexConstantBuffer, 0);
|
|
|
|