Re: Implementing OpenGL using GLUT or simply native OpenGL...
Re: Implementing OpenGL using GLUT or simply native OpenGL...
- Subject: Re: Implementing OpenGL using GLUT or simply native OpenGL...
- From: John Harte <email@hidden>
- Date: Sun, 16 Dec 2001 14:01:22 -0500
I got Lesson 12 & 18 to run by replacing
raw->tmpR = (unsigned char *)malloc(raw->sizeX*256);
raw->tmpG = (unsigned char *)malloc(raw->sizeX*256);
raw->tmpB = (unsigned char *)malloc(raw->sizeX*256);
with
raw->tmpR = (unsigned char *)malloc(raw->sizeX*25600);
raw->tmpG = (unsigned char *)malloc(raw->sizeX*25600);
raw->tmpB = (unsigned char *)malloc(raw->sizeX*25600);
I don't know if this is the correct way to fix this but it seems to work.
This code does not seem to have anything to do with OpenGL, it just
reads in a file.
John