View Full Version : Warning with the last nvidia driver

04-12-2007, 11:20 AM

I get this warning when I compile my fragment shader: "warning C7529: OpenGL does not allow #include directives".

Before I use the last driver (97.55) this wasn't showed. It is not possible to use the primitive include in the shaders now?


04-12-2007, 12:49 PM
What would "#include" even mean, in terms of glslang? I would strongly hope that it doesn't mean that the driver is allowed/required to go out to the disk drive to load some data.

04-12-2007, 03:42 PM
Well, nvidia supports some "enchantements" to the GLSL, mainly borrowed from Cg. #include will indeed look for a file with source in the application folder. You can disable all the extensions by simply specifying a language version.

04-24-2007, 12:34 PM
Yeah, then just load the header yourself and tack it on to your source, if it's not too much trouble.