Kind of. If you keep both of them unchanged , the first one is better for gaming.
As I said in my previous reply though, the HP has a lower CPU (compared to the toshiba), but the differences ain't that big. So in conclusion the Toshiba is worth every penny , so if you want to play games like l2 or cs, grab one. If you want to play games like, COD MW2 e.g, get the HP. You will still experience slow loadings, but in game you will be able to play with decent graphics.
Edit : Screwed up my reply , lol. Check again.