Fix performance issues on certain legacy graphics hardware that isn't capable of copying an integer. This reverts commit 52dacaa3e3ca5cfd6ca0e524a5e5e3ff843cba02.