Attempts To Fix Texturing

The problem wasn't actually with the library, but these changes don't
hurt.