GFX3D: Fix compiling for ports that don't support Lua. (Regression from commit 43fcaf6.)

This commit is contained in:
rogerman 2018-10-03 01:06:42 -07:00
parent 43fcaf68f1
commit 151b577cc0
1 changed files with 2 additions and 0 deletions

View File

@ -928,11 +928,13 @@ static void SetVertex()
static void UpdateProjection()
{
#ifdef HAVE_LUA
if(freelookMode == 0) return;
float floatproj[16];
for(int i=0;i<16;i++)
floatproj[i] = mtxCurrent[MATRIXMODE_PROJECTION][i]/((float)(1<<12));
CallRegistered3dEvent(0,floatproj);
#endif
}
static void gfx3d_glPolygonAttrib_cache()