gl/gbm: ensure we call the resize callback before attempting to draw