Re: Segmentation fault using OpenGL

2003-03-24 Thread Andre Bleau
Tron Thomas wrote: Here is the code: ... ::glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, nWidth, nHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, pData); Here is the bug: From glTexImage2D doc: void glTexImage2D( GLenum target, GLint level, GLint components, GLsizei width, GLsizei height,

Re: Segmentation fault using OpenGL

2003-03-21 Thread Tron Thomas
l Message- From: Tron Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 3:57 PM To: [EMAIL PROTECTED] Subject: Segmentation fault using OpenGL I have written a Windows OpenGL program which I can successfully build and run using both the Borland and Microsoft compilers. When I try

Re: Segmentation fault using OpenGL

2003-03-21 Thread Andre Bleau
Sorry, sent with wrong subject the first time. Tron Thomas wrote: I have written a Windows OpenGL program which I can successfully build and run using both the Borland and Microsoft compilers. When I try to run the same program after building it with the Cygwin GCC compiler, I get a segmentati

RE: Segmentation fault using OpenGL

2003-03-21 Thread Norman Vine
Tron Thomas > > I have written a Windows OpenGL program which I can successfully build > and run using both the Borland and Microsoft compilers. When I try to > run the same program after building it with the Cygwin GCC compiler, I > get a segmentation fault. I'm very puzzled by this as the p

Segmentation fault using OpenGL

2003-03-21 Thread Tron Thomas
I have written a Windows OpenGL program which I can successfully build and run using both the Borland and Microsoft compilers. When I try to run the same program after building it with the Cygwin GCC compiler, I get a segmentation fault. I'm very puzzled by this as the program works fine when