mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
error messages
This commit is contained in:
parent
4d484ffcdd
commit
bdc0d8a898
@ -41,7 +41,8 @@ init_cg() {
|
|||||||
cgContext = cgCreateContext();
|
cgContext = cgCreateContext();
|
||||||
|
|
||||||
if (cgContext == NULL) {
|
if (cgContext == NULL) {
|
||||||
cerr << "COULD NOT CREATE CG CONTEXT" << "\n" ;
|
express_cat.error()
|
||||||
|
<< "Could not create Cg context\n" ;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,14 +70,16 @@ load_shaders(){
|
|||||||
if (cgVertexProgram == NULL) {
|
if (cgVertexProgram == NULL) {
|
||||||
// We Need To Determine What Went Wrong
|
// We Need To Determine What Went Wrong
|
||||||
CGerror Error = cgGetError();
|
CGerror Error = cgGetError();
|
||||||
printf("VERTEX SHADER ERROR %s",cgGetErrorString(Error));
|
effects_cat.error()
|
||||||
|
<< "VERTEX SHADER " << cgGetErrorString(Error) << "\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cgFragmentProgram == NULL) {
|
if (cgFragmentProgram == NULL) {
|
||||||
// We Need To Determine What Went Wrong
|
// We Need To Determine What Went Wrong
|
||||||
CGerror Error = cgGetError();
|
CGerror Error = cgGetError();
|
||||||
printf("PIXEL SHADER ERROR %s",cgGetErrorString(Error));
|
effects_cat.error()
|
||||||
|
<< "PIXEL SHADER " << cgGetErrorString(Error) << "\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user