src/video/SDL_egl.c
changeset 10878 7fa08228d9e3
parent 10741 a32fd6b7412b
child 11175 cbc6a8a5b701
equal deleted inserted replaced
10877:3366ca004d17 10878:7fa08228d9e3
    23 #if SDL_VIDEO_OPENGL_EGL
    23 #if SDL_VIDEO_OPENGL_EGL
    24 
    24 
    25 #if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_WINRT
    25 #if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_WINRT
    26 #include "../core/windows/SDL_windows.h"
    26 #include "../core/windows/SDL_windows.h"
    27 #endif
    27 #endif
       
    28 #if SDL_VIDEO_DRIVER_ANDROID
       
    29 #include <android/native_window.h>
       
    30 #endif
    28 
    31 
    29 #include "SDL_sysvideo.h"
    32 #include "SDL_sysvideo.h"
    30 #include "SDL_egl_c.h"
    33 #include "SDL_egl_c.h"
    31 #include "SDL_loadso.h"
    34 #include "SDL_loadso.h"
    32 #include "SDL_hints.h"
    35 #include "SDL_hints.h"
   640 
   643 
   641     if (SDL_EGL_ChooseConfig(_this) != 0) {
   644     if (SDL_EGL_ChooseConfig(_this) != 0) {
   642         return EGL_NO_SURFACE;
   645         return EGL_NO_SURFACE;
   643     }
   646     }
   644     
   647     
   645 #if __ANDROID__
   648 #if SDL_VIDEO_DRIVER_ANDROID
   646     {
   649     {
   647         /* Android docs recommend doing this!
   650         /* Android docs recommend doing this!
   648          * Ref: http://developer.android.com/reference/android/app/NativeActivity.html 
   651          * Ref: http://developer.android.com/reference/android/app/NativeActivity.html 
   649          */
   652          */
   650         EGLint format;
   653         EGLint format;