[osg-users] OpenGL Shader Compile Problem: repeated #version directive
Elias Tarasov
elias.tarasov at gmail.com
Mon Jul 20 02:15:10 PDT 2015
Fixed! :)
The solution (in that particular case) is straightforward.
The code:
Code:
const std::string glsl_version_150()
{
static const std::string source(PRAGMA_ONCE(version,"#version 150 compatibility\n\n"));
return source;
};
must be replaced by:
Code:
const std::string glsl_version_150()
{
static const std::string source("#version 150 compatibility\n\n");
return source;
};
Thank you for help and great patience!
Cheers,
Elias
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64378#64378
More information about the osg-users
mailing list