Ignore:
Timestamp:
Mar 23, 2012, 3:58:08 PM (8 years ago)
Author:
ldelgass
Message:

Assume baseline requirement of NV40 GPU, which translates to Cg profiles vp40
and fp40, which in turn require NV_vertex_program3 and NV_fragment_program2
assembly shader extensions. Add explicit check for these extensions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/NvStdVertexShader.cpp

    r2870 r2882  
    2828    cgGLSetStateMatrixParameter(_mvi_vert_std_param, CG_GL_MODELVIEW_MATRIX, CG_GL_MATRIX_INVERSE);
    2929    cgGLBindProgram(_cgVP);
    30     cgGLEnableProfile(CG_PROFILE_VP30);
     30    cgGLEnableProfile(CG_PROFILE_VP40);
    3131}
    3232
    3333void NvStdVertexShader::unbind()
    3434{
    35     cgGLDisableProfile(CG_PROFILE_VP30);
     35    cgGLDisableProfile(CG_PROFILE_VP40);
    3636}
Note: See TracChangeset for help on using the changeset viewer.