Texture2D linear option

The manual says that Texture2D can have the following form:
Texture2D(int width, int height, TextureFormat format, bool mipmap, bool linear);

But when I try to add the last option (the linear setting) I get an error message: "Texture2D does not have a visible constructor that matches the argument list '(int, int, UnityEngine.TextureFormat, boolean, boolean). And yet someone posted some code that makes use of this form of Texture2D, so they apparently got it to work since they also have a webplayer demo that uses this code (see : Loading... )

So what’s going on? The same code works if I take out the “linear” setting at the end, so there’s clearly nothing wrong with the other variables I’m using in that line. It just won’t accept the final parameter even though it’s supposed to, according to the documentation itself.

You have done something wrong, this works fine:

Texture2D someTex;
Debug.Log(someTex); // Logs "Null"
someTex = new Texture2D( 16, 16, TextureFormat.ARGB32, true, true );
Debug.Log(someTex); // Logs "UnityEngine.Texture2D - means it created it

tested in 4.2.0f4 (not actually the very latest)