st/dri: Fix surfaceless gl using contexts with previous bound surfaces
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Wed, 9 Feb 2011 19:42:50 +0000 (20:42 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 11 Feb 2011 04:07:01 +0000 (23:07 -0500)
commit0acb31be171f01aec8b38ceaddf47b7da6dae2a0
treef477f5e686c8ac99a94fbf338ccc698f7f29f531
parentc79a5a706727c40a856e36c043da608c825390a2
st/dri: Fix surfaceless gl using contexts with previous bound surfaces

ctx->dPriv might be != NULL then draw which is NULL is accessed:

struct dri_drawable *draw = dri_drawable(driDrawPriv);
[..]
if (ctx->dPriv != driDrawPriv) {
      ctx->dPriv = driDrawPriv;
      draw->texture_stamp = driDrawPriv->lastStamp - 1;
}
src/gallium/state_trackers/dri/common/dri_context.c