summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-04-11 18:54:28 -0600
committerBrian Paul <[email protected]>2016-04-12 10:44:45 -0600
commit6c014782138634d5d36e1484bf498cef2b2d888f (patch)
tree39862aa94398844dc5404af79572af61a8de9350 /src/gallium/drivers/swr
parentb5105e67a860c6c3271ad7d48e2d80e84c3e8ade (diff)
st/mesa: fix memleak in glDrawPixels cache code
If the glDrawPixels size changed, we leaked the previously cached texture, if there was one. This patch fixes the reference counting, adds a refcount assertion check, and better handles potential malloc() failures. Tested with a modified version of the drawpix Mesa demo which changed the image size for each glDrawPixels call. Cc: "11.2" <[email protected]> Reviewed-by: José Fonseca <[email protected]> Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
0 files changed, 0 insertions, 0 deletions