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