Allow larger texture buffer widths.

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

Allow larger texture buffer widths