mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Fixed minor bug.
This commit is contained in:
parent
7ccd6fc78f
commit
d772b9a321
@ -771,19 +771,6 @@ cg_release_resources() {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: ShaderExpansion::cg_report_errors
|
||||
// Access: Private
|
||||
// Description: xyz
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void ShaderExpansion::
|
||||
cg_report_errors() {
|
||||
CGerror err = cgGetError();
|
||||
if (err != CG_NO_ERROR) {
|
||||
gobj_cat.error() << _name << " " << cgGetErrorString(err) << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: ShaderExpansion::cg_compile_entry_point
|
||||
// Access: Private
|
||||
@ -799,7 +786,7 @@ cg_compile_entry_point(char *entry, const ShaderCaps &caps, bool fshader)
|
||||
int active = fshader ? caps._active_fprofile : caps._active_vprofile;
|
||||
int ultimate = fshader ? caps._ultimate_fprofile : caps._ultimate_vprofile;
|
||||
|
||||
cg_report_errors();
|
||||
cgGetError();
|
||||
|
||||
if (fshader && caps._bug_list.count(SBUG_ati_draw_buffers)) {
|
||||
compiler_args[nargs++] = "-po";
|
||||
|
Loading…
x
Reference in New Issue
Block a user