Original Post
I can't seem to read textures properly in Cg. I'm confused about the proper state for OpenGL. I lookup into two textures in a Cg fragment program. I first read the two textures into memory, generating a unique ID for each and then passing that ID to the fragment program as a uniform parameter. However, doing this only allowed me to access the last texture I loaded. I figured that I needed to enable multitexturing and load a single texture into two different texture units. So I did that and now I get no geometry at all. Can someone clue me in as to how to setup OpenGL to be able to read two textures in a Cg fragment program? EDIT: Also, Cg seems to quit when I use GLEW and enable multitexturing. Even my shaders that don't access textures won't work. T