Add checking that fixes a mislead behavior...

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