瀏覽代碼

Use the included Khronos headers on Android so we can create Core OpenGL contexts when building with older SDK

Sam Lantinga 7 年之前
父節點
當前提交
88e3562ba0
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1 1
      include/SDL_egl.h
  2. 0 1
      src/core/android/SDL_android.c

+ 1 - 1
include/SDL_egl.h

@@ -24,7 +24,7 @@
  *
  *  This is a simple file to encapsulate the EGL API headers.
  */
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(__ANDROID__)
 
 #include <EGL/egl.h>
 #include <EGL/eglext.h>

+ 0 - 1
src/core/android/SDL_android.c

@@ -29,7 +29,6 @@
 
 #include "SDL_system.h"
 #include "SDL_android.h"
-#include <EGL/egl.h>
 
 #include "keyinfotable.h"