glx:dri_common.c: check psc->driScreen->createDrawable return value
authorWang YanQing <udknight@gmail.com>
Tue, 20 Mar 2012 03:49:42 +0000 (11:49 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 28 Mar 2012 01:51:16 +0000 (09:51 +0800)
commit7a6324dbfe8d354b9b5f3181af0ce6bebbb374cc
treed4076df9fb5a361910e423baa98bd0e7627f8915
parent9773369ab4d1c75965821635f448733edde98636
glx:dri_common.c: check psc->driScreen->createDrawable return value

createDrawable may return NULL value, we should check it, or it will
make a segment failed.

[minor-indent-issue-fixed-by: Yuanhan Liu]

Signed-off-by: Wang YanQing <udknight@gmail.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
src/glx/dri_common.c