st/dri: Fix crash in st/dri from dri format commit
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 23 Feb 2012 17:17:37 +0000 (18:17 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 23 Feb 2012 18:16:58 +0000 (19:16 +0100)
commitbed7b4aa5ff7bab39e9aafe9d78c4ec63f5631bc
treeb84b5fcc6e4aeef912da6672742079dc67bda4c3
parentbc39de8c0b6bb19e411cfa8606f189c4868a5f01
st/dri: Fix crash in st/dri from dri format commit

Introduced with 8de5c355fa2bf0f30df2c7cf39aee01e793284bf, it would probably just crash.

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Jesse Barnes <jbarnes@virtousgeek.org>
src/gallium/state_trackers/dri/drm/dri2.c