Moved texture/surface error codes into the tex module.
Merge pull request #234 from kvark/tex

Moved texture/surface error codes into the tex module.