Game Development Community

Fatal-ISV with macCarbOGLVideo.cc [PARTIALLY RESOLVED]

by Orion the Hunter · in Technical Issues · 04/17/2013 (10:09 am) · 5 replies

Hello,

I'm getting some wonky issues when I try to run the TGBGame application.

It seems to only happen when I build the files. The pre-made bundles seem to function fine. When I launch it, it says "Fatal-ISV (path)macCarbOGLVideo.cc @ 556. We could not create a valid AGL rendering context."

I've searched this up, but apparently, this problem only happens with people who have two or more monitors. I have an iMac with Torque 1.7.6 with PSK, compiling with Xcode, 4.6. ANY help is greatly appreciated!

#1
04/17/2013 (11:00 am)
This is why we did the OS X rewrite for Torque 2D MIT and TGB 1.8. The old Carbon code is full of problems, including the one you just found. You'll have to rewrite that code using Cocoa, or grab sections from Torque 2D MIT to get it working.
#2
04/17/2013 (12:34 pm)
I think I'll grab sections from T2D MIT. If you could help me out, that would be great! Question--would that destroy PSK functionality?
#3
04/17/2013 (12:51 pm)
Well, I've been snooping around in platformOSX (MIT) and platformMacCarb and I found some files that are similar. I'll see what I can do...
#4
04/18/2013 (8:13 am)
Ah, I fixed it! (Well, sort of.)

1) Build TGB

2) Launch TGB DEBUG

3) Click "play"

4) Problem solved! :)
#5
04/18/2013 (10:16 am)
Whoa, this is weird...

It turns out the problem only persisted if the game was in fullscreen. I'd appreciate it if I could use fullscreen mode for the game, is there a way I could do that?