OpenGL Renderer: Force front facing and back facing polygons to draw in separate groups, fixing a rendering bug in the car selection screen of "Need For Speed: Most Wanted". (Regression from commit 47a7194
. Fixes #212.)
This commit is contained in:
parent
276e26c194
commit
dab414c725
|
@ -1636,7 +1636,8 @@ size_t OpenGLRenderer::DrawPolygonsForIndexRange(const POLYLIST *polyList, const
|
|||
polyPrimitive != GL_LINE_LOOP &&
|
||||
polyPrimitive != GL_LINE_STRIP &&
|
||||
oglPrimitiveType[nextPoly.vtxFormat] != GL_LINE_LOOP &&
|
||||
oglPrimitiveType[nextPoly.vtxFormat] != GL_LINE_STRIP)
|
||||
oglPrimitiveType[nextPoly.vtxFormat] != GL_LINE_STRIP &&
|
||||
this->_isPolyFrontFacing[i] != this->_isPolyFrontFacing[i+1])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue