error on return value for setUseTexture