• Advertisement


This topic is now archived and is closed to further replies.

Please i need help(Cg&OpenGL)

This topic is 5117 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I tried to to get started using Cg with opengl and copied the nehe tutorial 47. I have downloaded the cg toolkit from nvidia and installed it. I´ve compiled the whole code and got no errors(i´ve included all libraries and headers). The problem is, the test to see if the required profiles (ie, extensions) are supported always fails. // Get The Latest GL Vertex Profile cgVertexProfile = cgGLGetLatestProfile(CG_GL_VERTEX); // Validate Our Profile Determination Was Successful if (cgVertexProfile == CG_PROFILE_UNKNOWN) { MessageBox(NULL, "Invalid profile type", "Error", MB_OK); return FALSE; // Here is the fault } I have a valid RenderingContext(a grid is drawn). I am trying to solve this problem for months. Nehe´s version does get a valid profile. Why not mine? Please help me. I have a Radeon 9800XT.

Share this post

Link to post
Share on other sites

  • Advertisement