[dri2] Optimize event parsing to skip obsolete events.
authorKristian Høgsberg <krh@redhat.com>
Tue, 4 Mar 2008 00:04:22 +0000 (19:04 -0500)
committerKristian Høgsberg <krh@redhat.com>
Tue, 4 Mar 2008 00:16:20 +0000 (19:16 -0500)
commit4f7a75cc8a6cee7763b2d92e3d34858c3de7bd4f
tree27a5de065753cf85f2454bece79f1836d76f0de1
parent36c26d321b5d17902f0e8f531654dfb2fe2bdd2d
[dri2] Optimize event parsing to skip obsolete events.

This also fixes the problem where the X server does multiple resizes before
the DRI driver gets the events.  The obsolete buffer attach events then
reference already destroyed buffer objects.
src/mesa/drivers/dri/common/dri_util.c