Mercurial > sdl-ios-xcode
changeset 747:da36f59485da
Check for CPUID before checking for 3DNow!
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Nov 2003 09:30:14 +0000 |
parents | 72ef7ce609ef |
children | c1c09472dc7f |
files | src/cpuinfo/SDL_cpuinfo.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cpuinfo/SDL_cpuinfo.c Mon Nov 24 09:22:12 2003 +0000 +++ b/src/cpuinfo/SDL_cpuinfo.c Mon Nov 24 09:30:14 2003 +0000 @@ -136,6 +136,9 @@ static __inline__ int CPU_have3DNow() { int has_3DNow = 0; + if ( !CPU_haveCPUID() ) { + return 0; + } #if defined(__GNUC__) && defined(i386) __asm__ ( "push %%ebx\n"