Fixed half pixel offset of vectors in D3D

- appearance should be identical to GDI and BGFX
This commit is contained in:
ImJezze 2016-05-17 21:37:46 +02:00
parent 68669f5596
commit 29d11280a1

View File

@ -1636,6 +1636,8 @@ void renderer_d3d9::batch_vector(const render_primitive &prim, float line_time)
// set the color, Z parameters to standard values // set the color, Z parameters to standard values
for (int i = 0; i < 6; i++) for (int i = 0; i < 6; i++)
{ {
m_vectorbatch[m_batchindex + i].x -= 0.5f;
m_vectorbatch[m_batchindex + i].y -= 0.5f;
m_vectorbatch[m_batchindex + i].z = 0.0f; m_vectorbatch[m_batchindex + i].z = 0.0f;
m_vectorbatch[m_batchindex + i].rhw = 1.0f; m_vectorbatch[m_batchindex + i].rhw = 1.0f;
m_vectorbatch[m_batchindex + i].color = color; m_vectorbatch[m_batchindex + i].color = color;