To know if direct render is available

Hi,

I want to know for a program running in linux if direct rendering is available.
I believe glXIsDirect does the trick.

The question is, can I call this function within a SDL context?

Regards.
David.