Warning when using a specific dds skybox


I get 4 times the same warning in the console:

WebGL: INVALID_OPERATION: texParameter: no texture bound to target

but the skybox still displays correctly.

With other dds skyboxes from the playground textures, I don’t have any warnings.

hi i guess
it is timing problem shader request texture before completed loading

What is strange is that simply calling:

CubeTexture.CreateFromPrefilteredData("resources/texture/Clouds.dds", this.scene)

without doing anything else with it (I don’t assign it to a material) is enough to generate the warnings…

pinging @sebavan

@Evgeni_Popov, this is because you are not using a preprocessed cube texture. Preprocessed means it is entitled to be used with pbr and that the mip maps contain pre filtered data as explained in : Use a HDR environment (for PBR) - Babylon.js Documentation

Thanks for the explanation.

However, I’m not using PBR, I created a StandardMaterial for my skybox.

Even by using:

new CubeTexture("resources/texture/Clouds.dds", this.scene)

(not using CreateFromPrefilteredData).

I still get the warnings.

Weird, let me have a look, thanks for the repro.

Here’s the PG by calling new CubeTexture(...):


Fixed, it will be in the next nightly.