|
@@ -226,12 +226,14 @@ CLP(CgShaderContext)(CLP(GraphicsStateGuardian) *glgsg, Shader *s) : ShaderConte
|
|
|
if (!resource) {
|
|
if (!resource) {
|
|
|
resource = "unknown";
|
|
resource = "unknown";
|
|
|
}
|
|
}
|
|
|
- GLCAT.error()
|
|
|
|
|
- << "Could not find Cg varying " << cgGetParameterName(p);
|
|
|
|
|
- if (attribname) {
|
|
|
|
|
- GLCAT.error(false) << " : " << attribname;
|
|
|
|
|
|
|
+ if (GLCAT.is_debug()) {
|
|
|
|
|
+ GLCAT.debug()
|
|
|
|
|
+ << "Could not find Cg varying " << cgGetParameterName(p);
|
|
|
|
|
+ if (attribname) {
|
|
|
|
|
+ GLCAT.debug(false) << " : " << attribname;
|
|
|
|
|
+ }
|
|
|
|
|
+ GLCAT.debug(false) << " (" << resource << ") in the compiled GLSL program.\n";
|
|
|
}
|
|
}
|
|
|
- GLCAT.error(false) << " (" << resource << ") in the compiled GLSL program.\n";
|
|
|
|
|
|
|
|
|
|
} else if (loc != 0 && bind._id._name == "vtx_position") {
|
|
} else if (loc != 0 && bind._id._name == "vtx_position") {
|
|
|
// We really have to bind the vertex position to attribute 0, since
|
|
// We really have to bind the vertex position to attribute 0, since
|
|
@@ -312,10 +314,10 @@ CLP(CgShaderContext)(CLP(GraphicsStateGuardian) *glgsg, Shader *s) : ShaderConte
|
|
|
GLCAT.debug(false)
|
|
GLCAT.debug(false)
|
|
|
<< " is bound to a conventional attribute (" << resource << ")\n";
|
|
<< " is bound to a conventional attribute (" << resource << ")\n";
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- if (loc == CA_unknown) {
|
|
|
|
|
- // Suggest fix to developer.
|
|
|
|
|
- GLCAT.error() << "Try using a different semantic.\n";
|
|
|
|
|
|
|
+ if (loc == CA_unknown) {
|
|
|
|
|
+ // Suggest fix to developer.
|
|
|
|
|
+ GLCAT.debug() << "Try using a different semantic.\n";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|