Alex Szpakowski
262e8ef3f0
Mac: Send a window resize event when the window's backing scale factor changes.
...
The backing scale factor can change when the window moves between retina and non-retina displays.
The only other way to detect such a change is to compare the output of SDL_GL_GetDrawableSize or SDL_GetRendererOutputSize every frame, which is less than desirable, especially since the necessary app logic is likely already being executed when a window resize event is received.
2015-05-26 21:51:47 -03:00
Alex Szpakowski
a4f0daedae
EGL: OpenGL ES 3.0 contexts can now be created without the EGL_KHR_create_context extension.
...
Fixes bugzilla #2994 .
2015-05-26 19:34:56 -03:00
Alex Szpakowski
fcee3e734d
Code style cleanup in the GLES and GLES2 render backends.
2015-05-16 17:35:36 -03:00
Alex Szpakowski
240a3fbffe
iOS: Added support for SDL_DisableScreenSaver and SDL_EnableScreenSaver.
2015-05-16 16:55:56 -03:00
Alex Szpakowski
d57b973518
Mac: Use CoreFoundation headers instead of Carbon headers, in GetPowerInfo code.
2015-05-16 12:05:42 -03:00
Alex Szpakowski
f1a7c00d06
Refactored SDL_EGL_CreateContext: It now supports context flags and OpenGL ES 3+ contexts, and its behavior more closely matches the GLX and WGL context creation code.
...
Improved the code style consistency of SDL_egl.c.
Fixes bugzilla #2865 .
2015-05-11 21:03:36 -03:00
Alex Szpakowski
ac27b511bf
Fixed SDL_GL_GetAttribute queries for framebuffer component sizes in Core Profile OpenGL contexts.
...
Fixes bugzilla #2060 .
2015-05-06 12:54:51 -03:00
Alex Szpakowski
c4fe8c80c8
Fixed building the iOS Demo files in debug mode
2015-05-06 12:42:14 -03:00
Alex Szpakowski
4fc4026660
Replaced all remaining uses of NSAutoreleasePool with @autoreleasepool blocks (bugzilla #2680.)
2015-05-05 19:01:55 -03:00
Alex Szpakowski
6c20b68257
Fixed a warning when SDL_syswm.h is included in code compiled for iOS with clang.
2015-05-05 16:24:05 -03:00
Alex Szpakowski
d1372bb92c
Fixed the window offset on iOS when resuming an app with a borderless or fullscreen window that has the on-screen keyboard visible.
2015-05-05 16:20:11 -03:00
Alex Szpakowski
d603bb30e6
Fixed a crash on iOS when none of the orientations in Info.plist match the SDL window's actual orientation.
...
Fixes bug #2967 .
2015-05-05 16:16:10 -03:00