Re: [PATCH] glx: Add null pointer protection to __glGetProcAddress

2013-12-10 Thread Eric Anholt
Adam Jackson writes: > This can't happen when GLX is the backing window system, but can > elsewhere. We may as well protect against it at a high level. (where "elsewhere" is both egl and wgl, each with different sets of functions that will return NULL. What a delightful API) An ErrorF when re

[PATCH] glx: Add null pointer protection to __glGetProcAddress

2013-12-10 Thread Adam Jackson
This can't happen when GLX is the backing window system, but can elsewhere. We may as well protect against it at a high level. Signed-off-by: Adam Jackson --- glx/glxext.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glx/glxext.c b/glx/glxext.c index 84ac43d..316b4f6 1