mirror of https://github.com/mpv-player/mpv
Wrap HAVE_XXX macros with RUNTIME_CPUDETECT, because when RUNTIME_CPUDETECT is
enabled, checking HAVE_XXX and disabling that CPU feature is meaningless. patch by KO Myung-Hun, komh chollian net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26094 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0044fb7a38
commit
8c514af56c
|
@ -202,6 +202,7 @@ void GetCpuCaps( CpuCaps *caps)
|
|||
// caps->hasMMX2 = 0;
|
||||
// caps->hasMMX = 0;
|
||||
|
||||
#ifndef RUNTIME_CPUDETECT
|
||||
#ifndef HAVE_MMX
|
||||
if(caps->hasMMX) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"MMX supported but disabled\n");
|
||||
caps->hasMMX=0;
|
||||
|
@ -226,6 +227,7 @@ void GetCpuCaps( CpuCaps *caps)
|
|||
if(caps->has3DNowExt) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"3DNowExt supported but disabled\n");
|
||||
caps->has3DNowExt=0;
|
||||
#endif
|
||||
#endif // RUNTIME_CPUDETECT
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue