From: Morgan Bill D Contr AFRL/Link (Bill.Morgan++at++williams.af.mil)
Date: 07/28/2000 09:42:16
Hi,
I'm trying to build mipmaps using gluBuild2DMipmaps and I get:
"Trace/BPT trap (core dumped)"
I also tried to write my own version of this using gluScaleImage and now it
crashes at that call.
Here's the dbx dump:
Core from signal SIGTRAP: Breakpoint/trace trap
(dbx) where
> 0 fill_image(0x80, 0x80, 0xda712e8, 0x1401) ["mipmap.c":3407, 0xda73da0]
1 gluScaleImage(0x1907, 0x80, 0x80, 0x1401) ["mipmap.c":2522, 0xda71364]
2 build2DMipmaps(unsigned int,int,int,int,unsigned int,unsigned int,const
void*)(0xde1, 0x3, 0x80
, 0x3) ["../build2DMipmaps.C":104, 0x40bfe4]
(build2DMipmaps is my attempt at replacing gluBuild2DMipmaps)
A couple of other points.
1. I have this (both approaches) working successfully on a Mac using glut.
(I'm trying to move it to performer) so I'm reasonably confident that I'm
calling the functions correctly.
2. By mistake I did get gluScaleImage to not crash when I used a value of
1 instead of one of the defined variables for the format parameter. Both
the Mac and ONYX give an error message as expected but don't crash.
Any ideas? Which libraries should I be linking in? I removed -lGLU from
my make file and didn't see any change.
Thanks,
Bill
This archive was generated by hypermail 2b29 : Fri Jul 28 2000 - 09:43:52 PDT