add size checking to prevent setting backbuffer dimensions <= 0