Browse Source

Fix SSE3 detection.

CheckCPU() would always return true, letting the game continue and crash on an SSE3 instruction on non-SSE3 CPUs.
Christian Walther 12 years ago
parent
commit
d2933e66c6
  1. 2
      Sources/Plasma/Apps/plClient/winmain.cpp

2
Sources/Plasma/Apps/plClient/winmain.cpp

@ -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

Loading…
Cancel
Save