From 3b7bc2d1e505c1ad3c8d292793e77ed03f91635e Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 8 Jan 2017 04:54:11 +0100 Subject: [PATCH] Add NO_DRAWERGEN define --- src/swrenderer/drawers/r_drawers.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/swrenderer/drawers/r_drawers.cpp b/src/swrenderer/drawers/r_drawers.cpp index 57c33a5be5..544b8e779a 100644 --- a/src/swrenderer/drawers/r_drawers.cpp +++ b/src/swrenderer/drawers/r_drawers.cpp @@ -29,6 +29,8 @@ ///////////////////////////////////////////////////////////////////////////// +#if !defined(NO_DRAWERGEN) + extern "C" { void DrawColumn_SSE2(const DrawColumnArgs *, const WorkerThreadData *); @@ -150,11 +152,13 @@ extern "C" void TriFill32_13_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFill32_14_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); } +#endif ///////////////////////////////////////////////////////////////////////////// Drawers::Drawers() { +#if !defined(NO_DRAWERGEN) DrawColumn = DrawColumn_SSE2; DrawColumnAdd = DrawColumnAdd_SSE2; DrawColumnShaded = DrawColumnShaded_SSE2; @@ -245,6 +249,7 @@ Drawers::Drawers() TriFill32.push_back(TriFill32_12_SSE2); TriFill32.push_back(TriFill32_13_SSE2); TriFill32.push_back(TriFill32_14_SSE2); +#endif } Drawers *Drawers::Instance()