Make GRAPHICS_ACCUMBUFFER not default?
BlitzMax Forums/MiniB3D Module/Make GRAPHICS_ACCUMBUFFER not default?
| ||
After a lot of bug hunting I found out why minib3d is crashing under Parallels on my Mac Mini with NVIDIA 9400 graphics. It can be solved by removing the GRAPHICS_ACCUMBUFFER flag in miniB3D TGlobal.Graphics3D() so that it just reads: Graphics(width,height,depth,rate,GRAPHICS_BACKBUFFER|GRAPHICS_DEPTHBUFFER ) Can we have a way to set these flags at runtime or leave out the GRAPHICS_ACCUMBUFFER as default, or is this just a Parralels driver issue? It seams that all ARB functions are messsed up, when adding the ACCUmBUFFER flag. |
| ||
New code that should be backwards compatible: functions.bmx Function Graphics3D(width,height,depth=0,mode=0,rate=60,flags=-1) TGlobal.Graphics3D(width,height,depth,mode,rate,flags) End Function TGlobal.bmx Function Graphics3D(w,h,d=0,m=0,r=60,flags=-1) If flags = -1 Then flags = GRAPHICS_BACKBUFFER|GRAPHICS_DEPTHBUFFER|GRAPHICS_ACCUMBUFFER 'mode: '0: windowed in debug mode, fullscreen in non-debug mode '1: full-screen always '2: windowed always ' change depth values so that Graphics will behave in the same way as Blitz3D-style Graphics3D Select m Case 0 ?debug d=0 ? ?Not debug If d=0 Then d=16 ? Case 1 If d=0 Then d=16 Case 2 d=0 Default d=0 End Select width=w height=h depth=d mode=m rate=r SetGraphicsDriver(GLMax2DDriver()) Graphics(width,height,depth,rate,flags) GraphicsInit() End Function |