[PATCH] glx: Add null pointer protection to __glGetProcAddress

Eric Anholt eric at anholt.net
Tue Dec 10 14:59:16 PST 2013


Adam Jackson <ajax at redhat.com> 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 returning NoopDDA to warn that we're papering over a bug
in implementing some function would be pretty nice.  Either way,

Reviewed-by: Eric Anholt <eric at anholt.net>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20131210/00795c34/attachment.pgp>


More information about the xorg-devel mailing list