this patch add window dedicated checking that fixes a mislead behavior w...

this patch add window dedicated checking that fixes a mislead behavior when attempting to swap buffers and one of them is flagged as dedicated.