Working on my new OpenGL caps viewer, I suddenly realized the problem of what you plan to do: the max size of the viewport.
For example, on with my graphics card, the max size is 4096 pixels. That explains why my previous test didn't work!
So you have to check this limitation for your project.
I will release my new caps viewer in the next few days so you will be able to read that value.
