mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 20:53:50 -04:00
Improve error message when Cg support is not enabled
This commit is contained in:
parent
e515cbdbd1
commit
672a191d2a
@ -4828,8 +4828,8 @@ prepare_shader(Shader *se) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_CG) && !defined(OPENGLES)
|
|
||||||
case Shader::SL_Cg:
|
case Shader::SL_Cg:
|
||||||
|
#if defined(HAVE_CG) && !defined(OPENGLES)
|
||||||
if (_supports_basic_shaders) {
|
if (_supports_basic_shaders) {
|
||||||
result = new CLP(CgShaderContext)(this, se);
|
result = new CLP(CgShaderContext)(this, se);
|
||||||
break;
|
break;
|
||||||
@ -4838,6 +4838,10 @@ prepare_shader(Shader *se) {
|
|||||||
<< "Tried to load Cg shader, but basic shaders not supported.\n";
|
<< "Tried to load Cg shader, but basic shaders not supported.\n";
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#elif defined(OPENGLES)
|
||||||
|
GLCAT.error()
|
||||||
|
<< "Tried to load Cg shader, but Cg support is not available for OpenGL ES.\n";
|
||||||
|
return NULL;
|
||||||
#else
|
#else
|
||||||
GLCAT.error()
|
GLCAT.error()
|
||||||
<< "Tried to load Cg shader, but Cg support not compiled in.\n";
|
<< "Tried to load Cg shader, but Cg support not compiled in.\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user