I could really use more help with this... I realize the info I provide is pretty limited, but any insights would help.
The crash happens with projmatrix and without. It happens more frequently in higher resolutions. It also happens more frequently when not running in the IDE.
The error can happens from DrawText, DrawImage, GrabPixmap... basically, just about anything that interacts with the screen, it seems.
The specific debug info provided by the debugger in BLide is below. As you can see, I seem to be hitting a Null value deep in the function.
@$BMXPATH/mod/brl.mod/glgraphics.mod/glgraphics.bmx
Function SwapSharedContext
Type TDataType
Field _succ:TDataType=$00ee0ce0
Type TDataType
Field _succ:TDataType=$$00eeb30
Type TDataType
Field _succ:TDataType=$00ee0ae0
Type TDataType
Field _succ:TDataType=$00ee0ab0
Type TDataType
Field _succ:TDataType=Null
Type TPixmapDataType
TypeTBankDataType
Type TListDataType
Type TImageDataType
Type TGraphicsDriver
Type TGLGraphicsDriver
The details vary slightly when the crash is in DrawText versus DrawImage, and so on, but it always looks like this.