gsdx-ogl: fix a minor gcc warning

This commit is contained in:
Gregory Hainaut 2016-05-15 13:10:46 +02:00
parent 913e3d65d2
commit d47d9e5017

View File

@ -764,7 +764,7 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
// SSE optimization: shuffle m[1] to have (4*32 bits) X, Y, U, V // SSE optimization: shuffle m[1] to have (4*32 bits) X, Y, U, V
int first_dpX = v[1].XYZ.X - v[0].XYZ.X; int first_dpX = v[1].XYZ.X - v[0].XYZ.X;
int first_dpU = v[1].U - v[0].U; int first_dpU = v[1].U - v[0].U;
for (int i = 0; i < m_vertex.next; i += 2) { for (size_t i = 0; i < m_vertex.next; i += 2) {
int dpX = v[i+1].XYZ.X - v[i].XYZ.X; int dpX = v[i+1].XYZ.X - v[i].XYZ.X;
int dpU = v[i+1].U - v[i].U; int dpU = v[i+1].U - v[i].U;
if (dpX != first_dpX || dpU != first_dpU) { if (dpX != first_dpX || dpU != first_dpU) {