# HG changeset patch # User Sam Lantinga # Date 1069666214 0 # Node ID da36f59485da066190d3aace6ae2ceb7b2a30811 # Parent 72ef7ce609ef3e58da6da548a9c08d6e8206dba4 Check for CPUID before checking for 3DNow! diff -r 72ef7ce609ef -r da36f59485da src/cpuinfo/SDL_cpuinfo.c --- 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"