Ok so I have updated that test code
http://pastebin.com/1M2gNbYdNow when I run this after I close the window I get the message
DRM_IOCTL_GEM_CLOSE 6 failed (region): Bad file descriptor
I have tracked this to the line where I create the image passing in a width and height.
I also tested your other demos and I get two of those messages when I close the program. (Various lines cause this one)
And upon search of this weird message (on google) I was linked to a post on this forum by you haha.
Also why is it a two step process to create an Image of a certain color why not overload the constructor to do this?
I'll be playing around with this a little bit more before diving in.