mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -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;
|
||||
}
|
||||
|
||||
#if defined(HAVE_CG) && !defined(OPENGLES)
|
||||
case Shader::SL_Cg:
|
||||
#if defined(HAVE_CG) && !defined(OPENGLES)
|
||||
if (_supports_basic_shaders) {
|
||||
result = new CLP(CgShaderContext)(this, se);
|
||||
break;
|
||||
@ -4838,6 +4838,10 @@ prepare_shader(Shader *se) {
|
||||
<< "Tried to load Cg shader, but basic shaders not supported.\n";
|
||||
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
|
||||
GLCAT.error()
|
||||
<< "Tried to load Cg shader, but Cg support not compiled in.\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user