How to deal with error c7531

fshader72.glsl failed to compile:
0(g):error c7531:global function textureCube requires “#extension GL_NV_shadow_samplers_cube:enable” before use


Do you use the function “textureCube”, or did you mean “samplerCube” (or perhaps the function “texture”)?

If you actually use the function “textureCube”, you need the extension “GL_NV_shadow_samplers_cube”, which you have to require by using the following directive in your shader code:

#extension GL_NV_shadow_samplers_cube : enable

Thanks very much

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.