Mon, 20 May 2013 12:01:31 -0700It turns out that GL_ARB_debug_output is really only useful on debug contexts, so for consistency and performance we'll only check and report errors on debug contexts.
Sam Lantinga <slouken@libsdl.org> [Mon, 20 May 2013 12:01:31 -0700] rev 7198
It turns out that GL_ARB_debug_output is really only useful on debug contexts, so for consistency and performance we'll only check and report errors on debug contexts.
I added a --gldebug command line option for the test programs to easily test this, and we may want a hint as well to enable OpenGL error checking.

Sun, 19 May 2013 22:57:01 -0700Fixed declaration of GL_HandleDebugMessage
Sam Lantinga <slouken@libsdl.org> [Sun, 19 May 2013 22:57:01 -0700] rev 7197
Fixed declaration of GL_HandleDebugMessage

Sun, 19 May 2013 22:45:52 -0700Fixed windows build
Sam Lantinga <slouken@libsdl.org> [Sun, 19 May 2013 22:45:52 -0700] rev 7196
Fixed windows build

Sun, 19 May 2013 22:36:54 -0700Fixed bug 1842 - [patch] SDL_SetWindowPosition sets bad position values when given SDL_WINDOWPOS_CENTERED args
Sam Lantinga <slouken@libsdl.org> [Sun, 19 May 2013 22:36:54 -0700] rev 7195
Fixed bug 1842 - [patch] SDL_SetWindowPosition sets bad position values when given SDL_WINDOWPOS_CENTERED args

Alex Szpakowski

When calling SDL_SetWindowPosition(window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED), the window moves to the correct position but it seems to internally set its x/y position values to the literal value of the SDL_WINDOWPOS_CENTERED define.
This causes all sorts of problems when SDL functions which use the window position (e.g. SDL_SetWindowGrab) are called after the aforementioned SDL_SetWindowPosition call.

Looking at the SDL_SetWindowPosition code, it seems that SDL_SendWindowEvent with the SDL_WINDOWEVENT_MOVED event is called at the end of the function using the literal value of the SDL_WINDOWPOS_CENTERED define, instead of the newly set window->x and window->y values.
SDL_SendWindowEvent then sets the values of window->windowed.x and window->windowed.y to that value (0x2FFF0000, aka 805240832.)

I have attached a patch which changes SDL_SetWindowPosition to make sure SDL_SendWindowEvent is called with the correct coordinate values, if SDL_WINDOWPOS_CENTERED is used (fixes the issue for me.)

Tested with Mac OS 10.8.3.

Sun, 19 May 2013 22:28:10 -0700Fixed bug 1837 - Use error extension instead of glGetError()
Sam Lantinga <slouken@libsdl.org> [Sun, 19 May 2013 22:28:10 -0700] rev 7194
Fixed bug 1837 - Use error extension instead of glGetError()

Implemented support for GL_ARB_debug_output, but was unable to test it on Mac OS X.

Sat, 18 May 2013 23:32:53 -0700Deprecate test/automated and test/test-automation (replaced by test/testautomation*.*)
Andreas Schiffler <aschiffler@ferzkopp.net> [Sat, 18 May 2013 23:32:53 -0700] rev 7193
Deprecate test/automated and test/test-automation (replaced by test/testautomation*.*)

Sat, 18 May 2013 14:51:29 -0700Fixed black screen on iOS
Sam Lantinga <slouken@libsdl.org> [Sat, 18 May 2013 14:51:29 -0700] rev 7192
Fixed black screen on iOS

Sat, 18 May 2013 14:17:52 -0700File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org> [Sat, 18 May 2013 14:17:52 -0700] rev 7191
File style cleanup for the SDL 2.0 release

Sat, 18 May 2013 12:48:50 -0700Added mobile application events, with implementations for iOS and Android
Sam Lantinga <slouken@libsdl.org> [Sat, 18 May 2013 12:48:50 -0700] rev 7190
Added mobile application events, with implementations for iOS and Android

Sat, 18 May 2013 09:35:09 -0700Update test harness to handle test return codes; fix comment format in harness; update Main test suite to handle globally disabled features
Andreas Schiffler <aschiffler@ferzkopp.net> [Sat, 18 May 2013 09:35:09 -0700] rev 7189
Update test harness to handle test return codes; fix comment format in harness; update Main test suite to handle globally disabled features