]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
removing one more reciprocal...
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 28 Jan 2011 02:35:28 +0000 (02:35 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 28 Jan 2011 02:35:28 +0000 (02:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10767 d7cf8633-e32d-0410-b094-e92efae38249

dpsoftrast.c

index ca3e025c1d140cb4df6dc32ff23035c81e6a97c5..e2a8b0a5feac2c627a0f144ce3d2269b62808d45 100644 (file)
@@ -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];