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.
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.