Workaround idiotic custom texture loading logic so that D3D11, GL core (used on OS X) and GLES code paths have less broken textures.