PDA

View Full Version : How to deal with error c7531



dragon_fly
05-20-2014, 04:53 AM
fshader72.glsl failed to compile:
0(g):error c7531:global function textureCube requires "#extension GL_NV_shadow_samplers_cube:enable" before use

Thanks.

Agent D
05-20-2014, 05:53 AM
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

dragon_fly
05-20-2014, 06:31 PM
Thanks very much