meta: Fix invalid PBO access from DrawPixels when trying to just alloc.
authorEric Anholt <eric@anholt.net>
Mon, 28 Sep 2009 21:03:40 +0000 (14:03 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 28 Sep 2009 21:12:15 +0000 (14:12 -0700)
commitd492e7b017178c03b4979cf4ff266162d83c4f37
tree459b4672c39a8380c1180b86cc5c3bbdbc7869a0
parente885cb48a0b9292b3df9204f1c2783bf1fe29a28
meta: Fix invalid PBO access from DrawPixels when trying to just alloc.

This whole reuse of buffers (TexSubImage instead of TexImage, SubData
instead of Data) is bad for hardware drivers, but it's even worse when
we accidentally try to access the 2x2 PBO to fill the new 16x16 texture
we're creating, producing GL errors.

Fixes piglit pbo-drawpixels.  Bug #14163.
src/mesa/drivers/common/meta.c