Fri, 20 Jul 2012 13:52:25 -0400Should fix type-punning compiler warnings.
Ryan C. Gordon <icculus@icculus.org> [Fri, 20 Jul 2012 13:52:25 -0400] rev 6376
Should fix type-punning compiler warnings.

Fri, 20 Jul 2012 13:33:15 -0400Fixed some minor compiler warnings.
Ryan C. Gordon <icculus@icculus.org> [Fri, 20 Jul 2012 13:33:15 -0400] rev 6375
Fixed some minor compiler warnings.

Fri, 20 Jul 2012 13:32:34 -0400Fixed pthread_np.h detection on OpenBSD.
Ryan C. Gordon <icculus@icculus.org> [Fri, 20 Jul 2012 13:32:34 -0400] rev 6374
Fixed pthread_np.h detection on OpenBSD.

Thu, 19 Jul 2012 09:36:58 -0700More OpenGL ES fixes from Scott Percival
Sam Lantinga <slouken@libsdl.org> [Thu, 19 Jul 2012 09:36:58 -0700] rev 6373
More OpenGL ES fixes from Scott Percival

Wed, 18 Jul 2012 15:53:33 -0700Fixed bug 1542 - SDL_Touch should reserve tilt_x and tilt_y
Sam Lantinga <slouken@libsdl.org> [Wed, 18 Jul 2012 15:53:33 -0700] rev 6372
Fixed bug 1542 - SDL_Touch should reserve tilt_x and tilt_y

Gerry JJ 2012-07-14 19:42:23 PDT
The SDL_Touch structure currently reserves fields for tablet tilt and rotation
(marked "for future use"), but a tablet stylus can tilt in both x and y
directions in addition to rotation around itself (or, put another way, it can
rotate in x, y and z). So, the struct should probably reserve fields for both
tilt_x and tilt_y, not just tilt.

Wed, 18 Jul 2012 15:20:32 -0700Switch the OpenGL ES renderers to request EGL OpenGL contexts
Sam Lantinga <slouken@libsdl.org> [Wed, 18 Jul 2012 15:20:32 -0700] rev 6371
Switch the OpenGL ES renderers to request EGL OpenGL contexts

Wed, 18 Jul 2012 15:17:27 -0700Improved simultaneous support for OpenGL and OpenGL ES
Sam Lantinga <slouken@libsdl.org> [Wed, 18 Jul 2012 15:17:27 -0700] rev 6370
Improved simultaneous support for OpenGL and OpenGL ES

From Scott Percival

Okay, I think I have something for this. Tested it on GL and GLES
machines, it seems to work okay.

- Add a new SDL GL attribute SDL_GL_CONTEXT_EGL:
- Only useful for the X11 video driver at the moment
- Set to 1 for an EGL context, 0 to use the default for the video driver
- Default is 0, unless library is built for EGL only
- Should be set after SDL init, but before window/context
creation (i.e. same place you'd specify attributes for major/minor GL
version)
- After a lot of agony pondering the least-terrible way to go about
it, made it so that X11_GL_LoadLibrary and X11_GLES_LoadLibrary check
SDL_GL_CONTEXT_EGL. If no GL context exists yet, and the attribute
choice doesn't match with the checking function, then it changes all
the function pointers in the video driver and passes control on to the
new LoadLibrary method.
- Likewise, make X11_CreateWindow check this attribute before firing
off a call to X11_GL_GetVisual/X11_GLES_GetVisual
- Added a sanity check to the start of X11_GL_LoadLibrary
- Tidied up SDL_x11opengles.h
- Moved ownership of the gles_data structure over to
X11_GLES_LoadLibrary/UnloadLibrary
- Should incorporate the 3 fixes posted by Andre Heider

This is obviously quite a bit to take in, but is (at least) a proof of
concept for the approach I think EGL/GLX mingling should take. Any
comments/criticism is much appreciated.

Wed, 18 Jul 2012 15:02:48 -0700Fix OpenGL initialization when OpenGL and OpenGLES are both available.
Sam Lantinga <slouken@libsdl.org> [Wed, 18 Jul 2012 15:02:48 -0700] rev 6369
Fix OpenGL initialization when OpenGL and OpenGLES are both available.

Both options default to "yes" via configure, and having libs/headers
for both installed is not unusual.

We default to OpenGL on this compile time combination, but can enforce
OpenGLES via setting the envvar SDL_VIDEO_X11_GLES.
This will be further refined based on community feedback.

Contributed by Andre Heider

Wed, 18 Jul 2012 15:01:41 -0700Rename envvar to overwrite X11 EGL library name.
Sam Lantinga <slouken@libsdl.org> [Wed, 18 Jul 2012 15:01:41 -0700] rev 6368
Rename envvar to overwrite X11 EGL library name.

We cannot use SDL_VIDEO_GL_DRIVER for both EGL and GLES1/2, so rename
the envvar for EGL to SDL_VIDEO_EGL_DRIVER and keep SDL_VIDEO_GL_DRIVER
for GLES1/2.

Contributed by Andre Heider

Wed, 18 Jul 2012 14:48:32 -0700Fix memory leaks in X11_CreateDevice error paths
Sam Lantinga <slouken@libsdl.org> [Wed, 18 Jul 2012 14:48:32 -0700] rev 6367
Fix memory leaks in X11_CreateDevice error paths

Patch contributed by Andre Heider