mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
gallium: free renderbuffer's old texture in st_renderbuffer_alloc_storage()
This commit is contained in:
parent
35cfd0a490
commit
f172148c6e
1 changed files with 3 additions and 2 deletions
|
|
@ -92,10 +92,11 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
|
|||
struct pipe_texture template;
|
||||
unsigned surface_usage;
|
||||
|
||||
/* Free the old surface (and texture if we hold the last
|
||||
* reference):
|
||||
/* Free the old surface and texture
|
||||
*/
|
||||
pipe_surface_reference( &strb->surface, NULL );
|
||||
pipe_texture_reference( &strb->texture, NULL );
|
||||
|
||||
|
||||
memset(&template, 0, sizeof(template));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue