From bbe1df0d51ffb9520540c4f1fef026bf436e616e Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Sun, 2 Nov 2014 10:32:25 -0500 Subject: [PATCH] WinRT: enabled OpenGL ES 2 support on Windows Phone The "future-dev" branch of MSOpenTech's ANGLE/WinRT repository (at https://github.com/msopentech/angle) includes support for Windows Phone 8.1. This change allows it to be used in conjunction with SDL's OpenGL functions. --- .../WinPhone80_VS2012/SDL-WinPhone80.vcxproj | 13 ++++++++++ .../SDL-WinPhone80.vcxproj.filters | 24 +++++++++++++++++++ include/SDL_config_winrt.h | 2 -- 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj b/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj index b325cd0b958a2..3776d2433b661 100644 --- a/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj +++ b/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj @@ -237,6 +237,8 @@ + + @@ -264,6 +266,7 @@ + @@ -272,6 +275,7 @@ + @@ -345,6 +349,8 @@ true true + + @@ -387,6 +393,7 @@ + @@ -419,6 +426,12 @@ true true + + true + true + true + true + true true diff --git a/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj.filters b/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj.filters index f52e56bf8c45d..1f4df44e41f18 100644 --- a/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj.filters +++ b/VisualC-WinRT/WinPhone80_VS2012/SDL-WinPhone80.vcxproj.filters @@ -360,6 +360,18 @@ Source Files + + Source Files + + + Source Files + + + Source Files + + + Source Files + @@ -650,5 +662,17 @@ Source Files + + Source Files + + + Source Files + + + Source Files + + + Source Files + \ No newline at end of file diff --git a/include/SDL_config_winrt.h b/include/SDL_config_winrt.h index d70a0bcd6372e..96c53c2e95ce4 100644 --- a/include/SDL_config_winrt.h +++ b/include/SDL_config_winrt.h @@ -173,10 +173,8 @@ typedef unsigned int uintptr_t; #define SDL_VIDEO_DRIVER_DUMMY 1 /* Enable OpenGL ES 2.0 (via a modified ANGLE library) */ -#if WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP /* TODO, WinRT: try adding OpenGL ES 2 support for Windows Phone 8 */ #define SDL_VIDEO_OPENGL_ES2 1 #define SDL_VIDEO_OPENGL_EGL 1 -#endif /* Enable appropriate renderer(s) */ #define SDL_VIDEO_RENDER_D3D11 1