From 6118e62c104042a6164d486e0fa80c3434cc1b39 Mon Sep 17 00:00:00 2001 From: zeromus Date: Fri, 6 Feb 2009 06:50:40 +0000 Subject: [PATCH] fix a tiny error in the ogl renderer state caching --- desmume/src/OGLRender.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index ad3b329c1..ea885b19d 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -718,6 +718,7 @@ static void OGLRender() InstallPolygonAttrib(lastPolyAttr=poly->polyAttr); lastTextureFormat = textureFormat = poly->texParam; lastTexturePalette = texturePalette = poly->texPalette; + lastPolyAttr = poly->polyAttr; BeginRenderPoly(); }