Fixed minor bug.

This commit is contained in:
Josh Yelon 2007-08-03 00:26:31 +00:00
parent 7ccd6fc78f
commit d772b9a321

View File

@ -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";