Reed Hedges
2003-11-10 01:26:36 UTC
Hello, I am having a strange crash in the OpenGL function
glGetIntegerv. AFAIK the following program should work, but I get "Bus
error" inside the first call to glGetIntegerv. (I am a complete
OpenGL newbie, just trying to port some software).
#include <stdio.h>
#include <OpenGL/gl.h>
int main() {
GLint max_mv_depth;
GLint max_tex;
glGetIntegerv (GL_MAX_TEXTURE_SIZE, &max_tex);
printf("Max texture is %d\n", (int)max_tex);
glGetIntegerv(GL_MAX_MODELVIEW_STACK_DEPTH, &max_mv_depth);
printf("Max mv stack depth is %d\n", (int)max_mv_depth);
}
I built it with "-framework OpenGL"
I am using 10.2.8 on an iBook G3 (ATI Rage 128 Pro).
Other applications using OpenGL work fine.
Thanks for any help or suggestions!
reed
glGetIntegerv. AFAIK the following program should work, but I get "Bus
error" inside the first call to glGetIntegerv. (I am a complete
OpenGL newbie, just trying to port some software).
#include <stdio.h>
#include <OpenGL/gl.h>
int main() {
GLint max_mv_depth;
GLint max_tex;
glGetIntegerv (GL_MAX_TEXTURE_SIZE, &max_tex);
printf("Max texture is %d\n", (int)max_tex);
glGetIntegerv(GL_MAX_MODELVIEW_STACK_DEPTH, &max_mv_depth);
printf("Max mv stack depth is %d\n", (int)max_mv_depth);
}
I built it with "-framework OpenGL"
I am using 10.2.8 on an iBook G3 (ATI Rage 128 Pro).
Other applications using OpenGL work fine.
Thanks for any help or suggestions!
reed