34 void checkForCgError(
const String& ogreMethod,
const String& errorTextPrefix, CGcontext context)
36 CGerror error = cgGetError();
37 if (error != CG_NO_ERROR)
39 String msg = errorTextPrefix + cgGetErrorString(error);
41 if (error == CG_COMPILER_ERROR)
44 msg = msg +
"\n" + cgGetLastListing(context);
46 OGRE_EXCEPT(Exception::ERR_INTERNAL_ERROR, msg, ogreMethod);