From: eihrul Date: Fri, 28 Jan 2011 02:35:28 +0000 (+0000) Subject: removing one more reciprocal... X-Git-Tag: xonotic-v0.5.0~438^2~74 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fa83b189f157acceb2373f430d767faf1999a95f;p=xonotic%2Fdarkplaces.git removing one more reciprocal... git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10767 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/dpsoftrast.c b/dpsoftrast.c index ca3e025c..e2a8b0a5 100644 --- a/dpsoftrast.c +++ b/dpsoftrast.c @@ -3642,7 +3642,7 @@ void DPSOFTRAST_Draw_ProcessTriangles(int firstvertex, int numtriangles, const i // adjust texture LOD by texture density, in the simplest way possible... mipedgescale = _mm_sub_ps(_mm_shuffle_ps(screen[0], screen[2], _MM_SHUFFLE(1, 0, 1, 0)), _mm_shuffle_ps(screen[1], screen[1], _MM_SHUFFLE(1, 0, 1, 0))); mipedgescale = _mm_mul_ps(mipedgescale, mipedgescale); - mipedgescale = _mm_rcp_ps(_mm_add_ps(mipedgescale, _mm_shuffle_ps(mipedgescale, mipedgescale, _MM_SHUFFLE(2, 3, 0, 1)))); + mipedgescale = _mm_div_ps(_mm_set1_ps(1.0f), _mm_add_ps(mipedgescale, _mm_shuffle_ps(mipedgescale, mipedgescale, _MM_SHUFFLE(2, 3, 0, 1)))); for (j = 0;j < DPSOFTRAST_MAXTEXTUREUNITS;j++) { texture = dpsoftrast.texbound[j];