intel / DRI2: Additional flush of fake front-buffer to real front-buffer
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Jun 2009 20:30:16 +0000 (13:30 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Jun 2009 20:32:26 +0000 (13:32 -0700)
commit2d86503471cb8691ce266342810237fc1b15a7b2
treec29fb45c6ca91f9dd8850372f10f81da472af9d4
parent077a06c140001849dafbedc4175f9aa703bbba69
intel / DRI2: Additional flush of fake front-buffer to real front-buffer

To maintain correctness, the server will copy the real front-buffer to
a newly allocated fake front-buffer in DRI2GetBuffersWithFormat.
However, if the DRI2GetBuffersWithFormat is triggered by glViewport,
this will copy stale data into the new buffer.  Fix this by flushing
the current fake front-buffer to the real front-buffer in
intel_viewport.

Fixes bug #22288.
src/mesa/drivers/dri/intel/intel_context.c