1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 03:09:13 +00:00

Fix SSE3 detection.

CheckCPU() would always return true, letting the game continue and crash on an SSE3 instruction on non-SSE3 CPUs.
This commit is contained in:
Christian Walther
2012-04-20 21:56:08 +02:00
parent a31f14a9bd
commit d2933e66c6

View File

@ -1396,7 +1396,7 @@ bool CheckCPU()
int cpu_info[4]; int cpu_info[4];
__cpuid(cpu_info, 1); __cpuid(cpu_info, 1);
#ifdef HAVE_SSE #ifdef HAVE_SSE
if(cpu_info[2] & sse3_flag == 0) if((cpu_info[2] & sse3_flag) == 0)
return false; return false;
#endif #endif
// Insert additional feature checks here // Insert additional feature checks here