[Glide64] Fix up missing log message

This commit is contained in:
zilmar 2016-02-04 21:49:54 +11:00
parent 7fe12881df
commit a99a64dc03
1 changed files with 8 additions and 7 deletions

View File

@ -46,6 +46,7 @@ extern "C" {
#include <math.h> #include <math.h>
#include "3dmath.h" #include "3dmath.h"
#include "trace.h"
void calc_light(VERTEX *v) void calc_light(VERTEX *v)
{ {
@ -417,26 +418,26 @@ void math_init()
{ {
__asm __asm
{ {
mov eax,1 mov eax, 1
cpuid cpuid
mov dwEdx,edx mov dwEdx, edx
} }
} }
__except(EXCEPTION_EXECUTE_HANDLER) __except (EXCEPTION_EXECUTE_HANDLER)
{ {
return; return;
} }
if (dwEdx & (1<<25)) if (dwEdx & (1 << 25))
{ {
if (dwEdx & (1<<24)) if (dwEdx & (1 << 24))
{ {
__try __try
{ {
__asm xorps xmm0, xmm0 __asm xorps xmm0, xmm0
IsSSE = TRUE; IsSSE = TRUE;
} }
__except(EXCEPTION_EXECUTE_HANDLER) __except (EXCEPTION_EXECUTE_HANDLER)
{ {
return; return;
} }
@ -446,7 +447,7 @@ void math_init()
if (IsSSE) if (IsSSE)
{ {
MulMatrices = MulMatricesSSE; MulMatrices = MulMatricesSSE;
LOG("3DNOW! detected.\n"); WriteTrace(TraceGlide64, TraceDebug, "3DNOW! detected.");
} }
#endif //_DEBUG #endif //_DEBUG