Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI, OpenGL & glGenTextures

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
This is a weird problem that I can't find a solution for so I thought I'd try here (even though it's probably something really basic). I'm using Visual C++ 6.0, with OpenGL, and I'm making an MDI application for a university course. The problem is that any glGenTextures calls that I make don't result in a texture:

ie:
GLuint texture = 0;
glGenTextures(1, &texture);
// here texture is still zero.

This happens for me on a fresh start for an MDI application. Is there anything I need to initialise? What I have found myself is that after a call to glutCreateWindow the glGenTextures call works properly. Could someone please suggest what I'm doing wrong?

Thanks heaps in advance,
-Ned.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top