mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-17 03:24:19 +01:00
GSDX: Clean up warnings on MSVC
GLLoader: cast passed parameters to required type. GSDeviceOGL: cast variables to required type and silence warnings. GSRendererOGL: cast variables to required type and silence warnings.
This commit is contained in:
1 parent
72661e7c16
commit
4cfb2b248e
3 files changed
+12
-12
No files matched your search
@@ -612,7 +612,7 @@ void GSRendererOGL::EmulateTextureSampler(const GSTextureCache::Source* tex)
|
||||
|
||||
const uint8 wms = m_context->CLAMP.WMS;
|
||||
const uint8 wmt = m_context->CLAMP.WMT;
|
||||
bool complex_wms_wmt = (wms | wmt) & 2;
|
||||
bool complex_wms_wmt = !!((wms | wmt) & 2);
|
||||
|
||||
bool bilinear = m_filter == 2 ? m_vt.IsLinear() : m_filter != 0;
|
||||
bool simple_sample = !tex->m_palette && cpsm.fmt == 0 && !complex_wms_wmt && !psm.depth;
|
||||
@@ -998,15 +998,15 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
||||
// Replace all sprite with a single fullscreen sprite.
|
||||
GSVertex* s = &m_vertex.buff[0];
|
||||
|
||||
s[0].XYZ.X = (16.0f * m_vt.m_min.p.x) + m_context->XYOFFSET.OFX;
|
||||
s[1].XYZ.X = (16.0f * m_vt.m_max.p.x) + m_context->XYOFFSET.OFX;
|
||||
s[0].XYZ.Y = (16.0f * m_vt.m_min.p.y) + m_context->XYOFFSET.OFY;
|
||||
s[1].XYZ.Y = (16.0f * m_vt.m_max.p.y) + m_context->XYOFFSET.OFY;
|
||||
s[0].XYZ.X = static_cast<uint16>((16.0f * m_vt.m_min.p.x) + m_context->XYOFFSET.OFX);
|
||||
s[1].XYZ.X = static_cast<uint16>((16.0f * m_vt.m_max.p.x) + m_context->XYOFFSET.OFX);
|
||||
s[0].XYZ.Y = static_cast<uint16>((16.0f * m_vt.m_min.p.y) + m_context->XYOFFSET.OFY);
|
||||
s[1].XYZ.Y = static_cast<uint16>((16.0f * m_vt.m_max.p.y) + m_context->XYOFFSET.OFY);
|
||||
|
||||
s[0].U = 16.0f * m_vt.m_min.t.x;
|
||||
s[0].V = 16.0f * m_vt.m_min.t.y;
|
||||
s[1].U = 16.0f * m_vt.m_max.t.x;
|
||||
s[1].V = 16.0f * m_vt.m_max.t.y;
|
||||
s[0].U = static_cast<uint16>(16.0f * m_vt.m_min.t.x);
|
||||
s[0].V = static_cast<uint16>(16.0f * m_vt.m_min.t.y);
|
||||
s[1].U = static_cast<uint16>(16.0f * m_vt.m_max.t.x);
|
||||
s[1].V = static_cast<uint16>(16.0f * m_vt.m_max.t.y);
|
||||
|
||||
m_vertex.head = m_vertex.tail = m_vertex.next = 2;
|
||||
m_index.tail = 2;
|
||||
|
||||
Reference in new issue
Block a user