Allow larger texture buffer widths.

Fixes #1631.
Merge pull request #1703 from unknownbrackets/texcache

Allow larger texture buffer widths
Add rounding to equality check for ColorTest
Merge pull request #1704 from raven02/patch-1

Add rounding to equality check for ColorTest