1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 02:51:27 +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];
__cpuid(cpu_info, 1);
#ifdef HAVE_SSE
if(cpu_info[2] & sse3_flag == 0)
if((cpu_info[2] & sse3_flag) == 0)
return false;
#endif
// Insert additional feature checks here