GL Graphics crash

Miscellaneous Forums/MacOS X Discussion/GL Graphics crash

SetGraphicsDriver GLMax2DDriver()

glEnable(GL_POLYGON_SMOOTH)
glEnable(GL_LINE_SMOOTH)


Why does this crash on OSX? Works fine on PC, still stands after typo correction :-)

typo? GL_POLYGON_SMOTH should be GL_POLYGON_SMOOTH?

Maybe your particular mac's opengl driver has some issue or bug that doesn't like it?

It looks like legit gl code.

It also crashes on my Intel iMac and my PowerBook G4.

seems to work on my PowerBook G4... running 10.4.9 and blitz is up to date and synched... always a good thing to make sure blitz is all up to date if you're getting crashes you shouldn't...

Crashes here too. OS X 10.4.10 Max 1.26

Model Name: iMac
Model Identifier: iMac6,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.16 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache (per processor): 4 MB
Memory: 2 GB
Bus Speed: 667 MHz

Chipset Model: NVIDIA GeForce 7600 GT
Type: Display
Bus: PCIe
VRAM (Total): 256 MB

David

Try and create a graphics object first with the Graphics command before using any opengl commands.

e.g.

GLGraphics 800, 600

rigth out of the blitz help file

SetGraphicsDriver GLMax2DDriver()
Local g:TGraphics=CreateGraphics( 640,480,32,60,GRAPHICS_BACKBUFFER )
SetGraphics g

if you don't create a gl context (thats display) you get a SIGAL: 10 (SIGBUS) error. Which roughly translats to your trying to access something that doesn't exist.

turn off Build GUI app to see such errors.