diff options
author | Brian Paul <[email protected]> | 2016-04-11 18:54:28 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-04-12 10:44:45 -0600 |
commit | 6c014782138634d5d36e1484bf498cef2b2d888f (patch) | |
tree | 39862aa94398844dc5404af79572af61a8de9350 /src/gallium/drivers/swr | |
parent | b5105e67a860c6c3271ad7d48e2d80e84c3e8ade (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