Sun, 02 Feb 2014 21:38:16 -0500Ignore the buildbot build directories.
Ryan C. Gordon <icculus@icculus.org> [Sun, 02 Feb 2014 21:38:16 -0500] rev 8152
Ignore the buildbot build directories.

Sun, 02 Feb 2014 20:58:46 +0100Fixed including SDL_internal.h twice for DirectFB.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sun, 02 Feb 2014 20:58:46 +0100] rev 8151
Fixed including SDL_internal.h twice for DirectFB.

Sun, 02 Feb 2014 20:55:42 +0100Added additional platform check for __ANDROID__.
Philipp Wiesemann <philipp.wiesemann@arcor.de> [Sun, 02 Feb 2014 20:55:42 +0100] rev 8150
Added additional platform check for __ANDROID__.

The macro ANDROID was deprecated with "android-ndk-1.6_r1".

Sun, 02 Feb 2014 00:53:27 -0800Fixed bug 2374 - Update copyright for 2014...
Sam Lantinga <slouken@libsdl.org> [Sun, 02 Feb 2014 00:53:27 -0800] rev 8149
Fixed bug 2374 - Update copyright for 2014...

Is it that time already??

Sun, 02 Feb 2014 00:33:31 -0800Fixed bug 2376 - no SDL_HasAVX
Sam Lantinga <slouken@libsdl.org> [Sun, 02 Feb 2014 00:33:31 -0800] rev 8148
Fixed bug 2376 - no SDL_HasAVX

Haneef Mubarak

AVX is the successor to SSE* and is fairly widely available. As such, it really ought to be detectable.

This functionality ought to be trivial to implement, and not having it means being forced to write an ugly workaround to check for AVX (so that normal SSE can be used if AVX is not available).

Here is an example on detecting AVX from SO (it actually shows ways to cehck for all of teh fancy instructions):

http://stackoverflow.com/questions/6121792/how-to-check-if-a-cpu-supports-the-sse3-instruction-set

Thu, 30 Jan 2014 20:29:58 -0300Treacherous copy/paste!
Gabriel Jacobo <gabomdq@gmail.com> [Thu, 30 Jan 2014 20:29:58 -0300] rev 8147
Treacherous copy/paste!

Thu, 30 Jan 2014 20:27:13 -0300Detect Xrandr >= 1.2 at build time
Gabriel Jacobo <gabomdq@gmail.com> [Thu, 30 Jan 2014 20:27:13 -0300] rev 8146
Detect Xrandr >= 1.2 at build time

Wed, 29 Jan 2014 18:38:13 -0800Add SDL_GL_ResetAttributes.
Jørgen P. Tjernø <jorgen@valvesoftware.com> [Wed, 29 Jan 2014 18:38:13 -0800] rev 8145
Add SDL_GL_ResetAttributes.

Thu, 30 Jan 2014 12:30:40 -0800Add a new hint SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT that allows SDL_CreateWindowFrom() to set the pixel format of another SDL_Window (and also will set the SDL_WINDOW_OPENGL flag on the window created with SDL_CreateWindowFrom()).
Sam Lantinga <slouken@libsdl.org> [Thu, 30 Jan 2014 12:30:40 -0800] rev 8144
Add a new hint SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT that allows SDL_CreateWindowFrom() to set the pixel format of another SDL_Window (and also will set the SDL_WINDOW_OPENGL flag on the window created with SDL_CreateWindowFrom()).

The reasoning behind this change is that source2 in -tools mode has a single OpenGL context that is used with multiple different windows. Some of those windows are created outside the engine (i.e. with Qt) and therefore we need to use SDL_CreateWindowFrom() to get an SDL_Window for those. The requirement for sharing an OpenGL context across multiple different windows is that each window has the same pixel format. To facilitate this, I now set SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT for the main window before calling SDL_CreateWindowFrom(). When I do this, SDL_CreateWindowFrom() will:

1. Set the pixel format of the returned window to the same pixel format as this SDL_Window passed in with the hint
2. The flag SDL_WINDOW_OPENGL will be set on the new window so it can be used for OpenGL rendering.

I only currently implemented this for Win32/WGL so implementing it for other platforms (i.e. X11) remains a TODO.

CR: SamL

Some pseudocode that shows how this is used in Source2:

HWND hExternalHwnd; // HWND that was established outside of SDL

// Create main window (happens inside platwindow.cpp)
SDL_Window *mainWindow = SDL_CreateWindow( , SDL_WINDOW_OPENGL .. );
// Create GL context, happens inside rendersystemgl
SDL_GLContext onlyContext = SDL_GL_CreateContext( mainWindow );

// Now I need to create another window from hEternalHwnd for my swap chain that will have the same pixel format as mainWindow, so set the hint
SDL_SetHint( SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT, CFmtStr( %p, mainWindow) );

// Create the secondary window. This returned window will have SDL_WINDOW_OPENGL set and share a pixel format with mainWindow from the hint
SDL_Window *secondaryWindow = SDL_CreateWindowFrom( hExternalHwnd );

// To render to the main window:
SDL_GL_MakeCurrent( mainWindow, onlyContext );
// Do some rendering to main window

// To render to the secondary window:
SDL_GLMakeCurrent( secondaryWindow, onlyContext );
// Do some rendering to secondary window

Thu, 30 Jan 2014 12:27:24 -0800Document Michael's changes adding TranslateMessage() back to the SDL message loop.
Sam Lantinga <slouken@libsdl.org> [Thu, 30 Jan 2014 12:27:24 -0800] rev 8143
Document Michael's changes adding TranslateMessage() back to the SDL message loop.