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,
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
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
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
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
5 matches
Mail list logo