Tue, 08 Mar 2011 22:48:21 -0800Fixed linking x64 with Visual Studio 2010.
Sam Lantinga <slouken@libsdl.org> [Tue, 08 Mar 2011 22:48:21 -0800] rev 5455
Fixed linking x64 with Visual Studio 2010.

Tue, 08 Mar 2011 16:58:45 -0800Removed obsolete test program
Sam Lantinga <slouken@libsdl.org> [Tue, 08 Mar 2011 16:58:45 -0800] rev 5454
Removed obsolete test program

Tue, 08 Mar 2011 16:58:25 -0800Added missing test program
Sam Lantinga <slouken@libsdl.org> [Tue, 08 Mar 2011 16:58:25 -0800] rev 5453
Added missing test program

Mon, 07 Mar 2011 23:27:51 -0800Fixed 64-bit compiling
Sam Lantinga <slouken@libsdl.org> [Mon, 07 Mar 2011 23:27:51 -0800] rev 5452
Fixed 64-bit compiling

Mon, 07 Mar 2011 22:06:12 -0800The msimg library isn't needed anymore.
Sam Lantinga <slouken@libsdl.org> [Mon, 07 Mar 2011 22:06:12 -0800] rev 5451
The msimg library isn't needed anymore.

Mon, 07 Mar 2011 22:04:10 -0800The MMX and 3DNow! instructions can't be compiled by 64-bit Visual Studio.
Sam Lantinga <slouken@libsdl.org> [Mon, 07 Mar 2011 22:04:10 -0800] rev 5450
The MMX and 3DNow! instructions can't be compiled by 64-bit Visual Studio.

Mon, 07 Mar 2011 22:03:29 -0800The msimg library isn't needed anymore.
Sam Lantinga <slouken@libsdl.org> [Mon, 07 Mar 2011 22:03:29 -0800] rev 5449
The msimg library isn't needed anymore.

Mon, 07 Mar 2011 22:03:11 -0800Fixed the libraries linked with Visual Studio 2010, the msimg library isn't needed anymore.
Sam Lantinga <slouken@libsdl.org> [Mon, 07 Mar 2011 22:03:11 -0800] rev 5448
Fixed the libraries linked with Visual Studio 2010, the msimg library isn't needed anymore.

Mon, 07 Mar 2011 14:07:08 -0800Fixed compiler warning on Visual C++
Sam Lantinga <slouken@libsdl.org> [Mon, 07 Mar 2011 14:07:08 -0800] rev 5447
Fixed compiler warning on Visual C++

Mon, 07 Mar 2011 14:06:46 -0800Fixed bug 1161 (Setting GL_ACCELERATED_VISUAL to 1 forces software rendering in Windows XP)
Sam Lantinga <slouken@libsdl.org> [Mon, 07 Mar 2011 14:06:46 -0800] rev 5446
Fixed bug 1161 (Setting GL_ACCELERATED_VISUAL to 1 forces software rendering in Windows XP)

Jesse Anders 2011-03-05 23:30:09 PST

It seems that in Windows XP, setting SDL_GL_ACCELERATED_VISUAL to 1 actually
disables hardware acceleration and puts OpenGL in software mode.

In the source code, the corresponding WGL attribute is first set here:

*iAttr++ = WGL_ACCELERATION_ARB;
*iAttr++ = WGL_FULL_ACCELERATION_ARB;

Later, this code:

if (_this->gl_config.accelerated >= 0) {
*iAttr++ = WGL_ACCELERATION_ARB;
*iAttr++ =
(_this->gl_config.accelerated ? WGL_GENERIC_ACCELERATION_ARB :
WGL_NO_ACCELERATION_ARB);
}

Sets it again if SDL_GL_ACCELERATED_VISUAL has a value other than the default.

More importantly, the documentation I found states that
WGL_GENERIC_ACCELERATION_ARB asks for an MDC driver, which, although I don't
know much about this topic, doesn't seem like the correct choice here. As
mentioned previously, the end effect is that requesting hardware acceleration
in Windows XP actually forces the renderer into software mode (on my system at
least), which I'm guessing isn't the desired behavior.