소스 검색

Re-add check for Metal on x86, where it's not supported.

Sam Lantinga 5 년 전
부모
커밋
b0ca8efd29
2개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      configure
  2. 4 0
      configure.ac

+ 4 - 0
configure

@@ -21775,6 +21775,10 @@ $as_echo_n "checking for Metal framework... " >&6; }
           #import <Metal/Metal.h>
           #import <Metal/Metal.h>
           #import <QuartzCore/CAMetalLayer.h>
           #import <QuartzCore/CAMetalLayer.h>
 
 
+          #if TARGET_CPU_X86
+          #error Metal doesn't work on this configuration
+          #endif
+
 int
 int
 main ()
 main ()
 {
 {

+ 4 - 0
configure.ac

@@ -2156,6 +2156,10 @@ AS_HELP_STRING([--enable-render-metal], [enable the Metal render driver [[defaul
           #import <Cocoa/Cocoa.h>
           #import <Cocoa/Cocoa.h>
           #import <Metal/Metal.h>
           #import <Metal/Metal.h>
           #import <QuartzCore/CAMetalLayer.h>
           #import <QuartzCore/CAMetalLayer.h>
+
+          #if TARGET_CPU_X86
+          #error Metal doesn't work on this configuration
+          #endif
         ],[
         ],[
         ],[
         ],[
         have_metal=yes
         have_metal=yes