From dab414c725fe231a2b408ee327d67c25e39ae657 Mon Sep 17 00:00:00 2001 From: rogerman Date: Mon, 29 Oct 2018 15:00:59 -0700 Subject: [PATCH] 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.) --- desmume/src/OGLRender.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index ed89891dc..a1ad7dca0 100755 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -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; }