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:
@ -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
|
||||
|
Reference in New Issue
Block a user