this patch add window dedicated checking that fixes a mislead behavior when attempting to swap buffers and one of them is flagged as dedicated.
Merge pull request #2 from geyslan/master

Add checking that fixes a mislead behavior...