mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 11:40:39 +02:00
Disable the call to driBOReference() in i915_update_texture()
It doesn't seem to be needed and disabling it fixes a big memory leak with some programs like xdemos/wincopy.c
This commit is contained in:
parent
5d9021554e
commit
182e861eea
1 changed files with 5 additions and 1 deletions
|
|
@ -234,10 +234,14 @@ i915_update_texture(struct i915_context *i915, uint unit,
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* this reference does not seem to be needed. In fact, when it's enabled
|
||||
* we leak a lot of memory (try xdemos/wincopy).
|
||||
*/
|
||||
#if 0
|
||||
{
|
||||
/*struct pipe_buffer_handle *p =*/ driBOReference(mt->region->buffer);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
i915->state.tex_buffer[unit] = driBOReference(intelObj->mt->region->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue