   CgFx + Direct3D
  I have an effect file which compiles and runs just fine with HLSL. Everything is just OK. The same file compiles fine with CgFx (at least my checks don't reveal any errors). The problem though is that the application fails while trying to find a suitable technique. The effect file has only one technique which the CgFX runtime doesn't accept. I have tried a lot of options and have triple checked everything. This has given me big headaches for the past couple of days. If anybody can help me out with this, I would be forever in his debt. I'm using Cg 1.5 by the way. I also have a ps 2.0 capable hardware. The following code is tested on both an nVidia and a non-nVidia graphics card with the same results.Here's the code:CGcontext context = cgCreateContext();cgSetErrorCallback( myErrorCallback );  // the code for myErrorCallback is omittedcgD3D9SetDevice( d3dDevice );cgD3D9EnableDebugTracing( CG_TRUE );cgD3D9RegisterStates( context );CGeffect effect = cgCreateEffectFromFile( context, filename, 0 );// everything is fine thus far. the code is compiled just fine and the following// check doesn't passif ( !effect ) {  return false;}CGtechnique technique = mpCurrentTechnique->GetCgTechnique();while ( technique && cgValidateTechnique( technique ) == CG_FALSE ) {  technique = cgGetNextTechnique( technique );}// This doesn't evaluate to trueif ( technique ) {  // continue with the rest of the application  // this code is not reached. }and here's the technique portion of the fx filetechnique textured {  pass frontPass {    VertexShader = compile vs_1_1 MainVS();    PixelShader  = compile ps_2_0 MainPS();    // I also changed to the OpenGL state manager by calling    // cgGLRegisterStates( context ) instead of cgD3D9RegisterStates( context )    // and used the following lines instead but it didn't work either    // VertexProgram = compile arbvp1 MainVS();    // FragmentProgram = compile arbfp1 MainPS();  }}Am I missing something here? Do I need to pass any compiler options to cgCreateEffectFromFile()?Thanks in advance   