[fpc-pascal]OpenGL/GLUT run time error when I whant compile this code
kf at linuxmail.org
Sat Apr 5 04:02:07 CEST 2003
I played around with the OpenGL unit, and I wrote some minimal OpenGL code to get a window:
Here is the code:
width = 640;
glClearColor(0.0, 0.0, 0.0, 0.0);
(*will add some more code*);
glutInitDisplayMode(GLUT_DOUBLE or GLUT_RGB);
glutInitWindowSize( width, height);
Now, when I whant to run to code, I get some Run time errors on the console:
Runtime error 216 at 0x4052F5CA
Runtime error 216 at 0x0804C1CA
etc. (about 20 lines)
1). I know not a lot of runtime errors, but after succesfully compiling, that isn`t a fpc bug, is it ?
What is the source of this run time error ? (mesa, fpc or my code ?)
2). I think about there isn`t enough code in the drawthings procedure to run succesfull.
What you think ?
Now with e-mail forwarding for only US$5.95/yr
Powered by Outblaze
More information about the fpc-pascal