I think I trashed my vid mem with two canvases

BlitzMax Forums/MaxGUI Module/I think I trashed my vid mem with two canvases

matibee(Posted 2009) [#1]
Hi all,

I wrote a simple tile editor on my windows box (which has loads of vram) but it fails on my Mac that only has 64mb shared Intel GMA 950. It uses two canvases and once a tile has been drawn on one, it refuses to appear on the other.

1) Could a Mac owner with some proper VRAM tell me this works for them? :)
2) If clicking in the main window only gives you white squares, comment out the drawimage for the mini-view (line 125)
3) Should I be taking specific steps to share images across canvases, along the lines of the glShareContexts? In which case, why the different behaviour across platforms/drivers?

I'm aware of the horror stories with GMA950 with things like DirectX drivers, and actually chose this chipset because if the code's gonna fail, I want it to fail for me :)

I've kinda 'solved' the issue by having two sets of images; one for each canvas.

Cheers
Matt




klepto2(Posted 2009) [#2]
Try adding this right after the import part in your code:

?Not win32
GLShareContexts()
?


The inconsistant behaviour is due the fact that win32 will use DX as a standard gfx driver where linux or mac use OpenGL.


matibee(Posted 2009) [#3]
Perfect Kelpto thanks.