On Fri, 28 Jul 2000, Mariano Alvarez Fernandez wrote:
If GrCreateContext(); is mallocing the memory space and malloc fails, does the returned GrContext variable == NULL or what else would indicate a failure?
Yes, GrContext returns NULL when it can't do his work.
Doesn't NULL refer to the default context that is created by GrSetMode()? I found this bit a little difficult to decipher in api.doc . If you want to create a subcontext of the default context, don't you pass NULL as a parent pointer? And if you want to set context to the default context, don't you give GrSetContext() a NULL pointer?
J-P