mirror of https://github.com/PCSX2/pcsx2.git
gsdx-osd: Update manager to support DX11
Fix an issue with w coordinate values being 0 which caused issues on DX11.
This commit is contained in:
parent
63bbf52219
commit
e683ce2994
|
@ -234,27 +234,27 @@ void GSOsdManager::RenderGlyph(GSVertexPT1* dst, const glyph_info g, float x, fl
|
|||
float w = g.bw * (2.0f/m_real_size.x);
|
||||
float h = g.bh * (2.0f/m_real_size.y);
|
||||
|
||||
dst->p = GSVector4(x2 , -y2 , 0.0f, 0.0f);
|
||||
dst->p = GSVector4(x2 , -y2 , 0.0f, 1.0f);
|
||||
dst->t = GSVector2(g.tx , 0.0f);
|
||||
dst->c = color;
|
||||
++dst;
|
||||
dst->p = GSVector4(x2 + w, -y2 , 0.0f, 0.0f);
|
||||
dst->p = GSVector4(x2 + w, -y2 , 0.0f, 1.0f);
|
||||
dst->t = GSVector2(g.tx + g.tw, 0.0f);
|
||||
dst->c = color;
|
||||
++dst;
|
||||
dst->p = GSVector4(x2 , -y2 - h, 0.0f, 0.0f);
|
||||
dst->p = GSVector4(x2 , -y2 - h, 0.0f, 1.0f);
|
||||
dst->t = GSVector2(g.tx , g.ty);
|
||||
dst->c = color;
|
||||
++dst;
|
||||
dst->p = GSVector4(x2 + w, -y2 , 0.0f, 0.0f);
|
||||
dst->p = GSVector4(x2 + w, -y2 , 0.0f, 1.0f);
|
||||
dst->t = GSVector2(g.tx + g.tw, 0.0f);
|
||||
dst->c = color;
|
||||
++dst;
|
||||
dst->p = GSVector4(x2 , -y2 - h, 0.0f, 0.0f);
|
||||
dst->p = GSVector4(x2 , -y2 - h, 0.0f, 1.0f);
|
||||
dst->t = GSVector2(g.tx , g.ty);
|
||||
dst->c = color;
|
||||
++dst;
|
||||
dst->p = GSVector4(x2 + w, -y2 - h, 0.0f, 0.0f);
|
||||
dst->p = GSVector4(x2 + w, -y2 - h, 0.0f, 1.0f);
|
||||
dst->t = GSVector2(g.tx + g.tw, g.ty);
|
||||
dst->c = color;
|
||||
++dst;
|
||||
|
|
Loading…
Reference in New Issue