Shared context in Yosemite?

Tarik's icon

Hi, after my upgrade to Yosemite I'm not getting basic OpenGL shared context functionality to work.

This same small patch gives two red windows in Mavericks (10.9.5), but one black and one red window in Yosemite (10.10.4), demonstrating that shared context is not functioning, with MaxMSP ver 7.0.4

can anyone reproduce or give advice? I'd rather not revert back to Mavericks but for now it seems like I might have to.

thanks! - t

Max Patch
Copy patch and select New From Clipboard in Max.

EDIT: for some reason, in a much more complex patch I'm using, the lack of shared context functionality also comes with the following error message:
"jit.gl.texture: error binding texture to target: GL Error: Invalid operation"

yaniki's icon

Hi, Tarik

I can't check your patch now, but I'm using @shared 1 parameter of jit.window in several projects on Yosemite on my MacBook Pro, Mac Mini and Mac Pro. Works fine.

Tarik's icon

Thanks Yaniki!
Strange... I forgot to set the @shared 1 parameter of jit.window (which mavericks doesnt care about apparently), but now that I did that, still the other window remains black. Using the AMD FirePro D700 gpu...
BUT... when I change the 'floating' or 'border' attribute of the other windows, all of a sudden it works. Until I set it to invisible and visible again... it remains black. So I guess its something in the order of building the context that specifically goes wrong on my computer... does anybody have any explanations? Shall I just get used to setting and un-setting floating attributes all over the place?

- t

Rob Ramirez's icon

hey tarik.
just to be clear, you should set @shared 1 on both jit.windows in order to share gl resources between them. no need to use the deprecated @shared_context gl.render attribute. i'll take a look at this on yosemite when i get a chance.