OpenGL error checks from rev 6494 lead to different behaviour for SDL_RenderSetViewport()

Dear all,

since rev 6494 I am noticing some strange difference in the
SDL_RenderSetViewport() behaviour for OpenGL. Given that a SDL_Window is
hidden, setting a viewport with {0, 0, 0, 0} was a valid operation until
that revision.

Since rev. 6494, the renderer->UpdateViewport() call in
SDL_RenderSetViewport() returns -1 without applying a proper error
message.

Find attached a simple program, which recreates that issue and exits
with the following output for me:

(marcus at medusa)> ./viewport_test
0,0,0,0 viewport setting failed
SDL not built with haptic (force feedback) support

Is this the intended behaviour?

Cheers
Marcus
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20121001/b8031c01/attachment.pgp

And here comes the attachement…
-------------- next part --------------
A non-text attachment was scrubbed…
Name: main.c
Type: text/x-csrc
Size: 896 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20121001/6b550b68/attachment.c
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20121001/6b550b68/attachment.pgp