Workaround dumb custom texture loading logic so that D3D11, GL core (used on OS X) and GLES code paths have less broken custom textures.
Merge pull request #307 from neobrain/custom_textures_workaround

Workaround dumb custom texture loading logic.