GLES2 screenshot support
implement Rotate={0,1,2,3} in the GLES codepath
Use malloc for the temporary framebuffer
Merge pull request #16 from paulscode/master

GLES2 screenshot support
Merge pull request #17 from krnlyng/rotate

implement Rotate={0,1,2,3} in the GLES codepath
Merge from upstream
Merge from upstream