Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: How to deal with error c7531

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2013
    Posts
    4

    Question 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

    Thanks.

  2. #2
    Junior Member Regular Contributor Agent D's Avatar
    Join Date
    Sep 2011
    Location
    Innsbruck, Austria
    Posts
    143
    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

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2013
    Posts
    4
    Thanks very much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •