Fix AMD support, fix a bug to not throw a resize event with 0x0 as widthxheight window size
Update unit tests