From 46ecfcf7fd775e13de594ac374df9b024cb1bd89 Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Fri, 7 Jan 2011 11:25:36 +0000 Subject: [PATCH] winport: - add hack for vs2010 build (crash on SoftRasterizer); --- desmume/src/rasterize.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desmume/src/rasterize.cpp b/desmume/src/rasterize.cpp index c9f3aef06..b6d2f3dfc 100644 --- a/desmume/src/rasterize.cpp +++ b/desmume/src/rasterize.cpp @@ -897,7 +897,15 @@ public: } while(verts[0]->y == verts[1]->y && verts[0]->x > verts[1]->x) + { rot_verts(); + // hack for VC++ 2010 (bug in compiler optimization?) + // freeze on 3D + // TODO: study it + #if _MSC_VER == 1600 + Sleep(0); // nop + #endif + } }