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