Add fixes for texture APIs in mod support