Replace grTexTextureMemRequired with grTexCalcMemRequiredhe commit.