Finding how much memory is on graphics card

How can I find out at run time how much memory there is available on the graphics card. Is there a glGet() of some kind to do this?

My standard answer to this question is, “you shouldn’t need to know.”

If you absolutely, absolutely need to know, DirectDraw will tell you.

But try to find an alternative. Making assumptions about how video memory gets used can get you in big trouble.

  • Matt