Wed, 18 Jul 2012 15:17:27 -0700Improved simultaneous support for OpenGL and OpenGL ES
Sam Lantinga [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 [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 [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 [Wed, 18 Jul 2012 14:48:32 -0700] rev 6367
Fix memory leaks in X11_CreateDevice error paths

Patch contributed by Andre Heider

Wed, 18 Jul 2012 14:14:55 -0700Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD SDL-1.2
Sam Lantinga [Wed, 18 Jul 2012 14:14:55 -0700] rev 6366
Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD

Brad Smith 2012-07-18 13:43:34 PDT
autoconf patch to fix X dynamic loading of libraries on OpenBSD

Wed, 18 Jul 2012 13:57:39 -0700Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD
Sam Lantinga [Wed, 18 Jul 2012 13:57:39 -0700] rev 6365
Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD

Brad Smith 2012-07-18 13:43:34 PDT
autoconf patch to fix X dynamic loading of libraries on OpenBSD

Wed, 18 Jul 2012 13:08:19 -0700Fixed bug 1434 - Add AltiVec detection for OpenBSD/powerpc SDL-1.2
Sam Lantinga [Wed, 18 Jul 2012 13:08:19 -0700] rev 6364
Fixed bug 1434 - Add AltiVec detection for OpenBSD/powerpc

Brad Smith 2012-02-29 19:31:46 PST

The attached patch adds AltiVec detection for OpenBSD/powerpc. Please apply the
patch to both 2.0 and 1.2.

Wed, 18 Jul 2012 13:06:38 -0700Fixed bug 1434 - Add AltiVec detection for OpenBSD/powerpc
Sam Lantinga [Wed, 18 Jul 2012 13:06:38 -0700] rev 6363
Fixed bug 1434 - Add AltiVec detection for OpenBSD/powerpc

Brad Smith 2012-02-29 19:31:46 PST

The attached patch adds AltiVec detection for OpenBSD/powerpc. Please apply the
patch to both 2.0 and 1.2.

Wed, 18 Jul 2012 10:47:41 -0700Updated the generic event check to try to compile instead of just look for library runtime function (fixes compiling on older Mac OS X SDKs)
Sam Lantinga [Wed, 18 Jul 2012 10:47:41 -0700] rev 6362
Updated the generic event check to try to compile instead of just look for library runtime function (fixes compiling on older Mac OS X SDKs)

Wed, 11 Jul 2012 21:55:36 -0400Fixed configure script. SDL-1.2
Ryan C. Gordon [Wed, 11 Jul 2012 21:55:36 -0400] rev 6361
Fixed configure script.