summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/pipe-loader
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-07-19 13:41:34 -0700
committerKenneth Graunke <kenneth@whitecape.org>2012-07-22 14:34:44 -0700
commitc3bc41011f9ffe648b7dd4915c6202b776cd1ab4 (patch)
tree67142b8cae0b021ac8ff206d6cfa5a3fadc3bf2b /src/gallium/auxiliary/pipe-loader
parentcfdf60f236a525a0309146ce2da156bd3856c8b7 (diff)
downloadexternal_mesa3d-c3bc41011f9ffe648b7dd4915c6202b776cd1ab4.zip
external_mesa3d-c3bc41011f9ffe648b7dd4915c6202b776cd1ab4.tar.gz
external_mesa3d-c3bc41011f9ffe648b7dd4915c6202b776cd1ab4.tar.bz2
mesa: Prevent repeated glDeleteShader() from blowing away our refcounts.
Calling glDeleteShader() should mark shaders as pending for deletion, but shouldn't decrement the refcount every time. Otherwise, repeated glDeleteShader() is not safe. This is particularly bad since glDeleteProgram() frees shaders: if you first call glDeleteShader() on the shaders attached to the program (thus decrementing the refcount), then called glDeleteProgram(), it would try to free them again (decrementing the refcount another time), causing a refcount > 0 assertion to fail. Similar to commit d950a778. NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/pipe-loader')
0 files changed, 0 insertions, 0 deletions