summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-22 12:41:59 -0600
committerBrian <[email protected]>2007-08-22 12:41:59 -0600
commit8a868919b50bdca4dc697d61e220a8fb50764f8e (patch)
tree85d7bab697bc56619ba9afef662116f327d2977e /src/mesa/state_tracker
parentc0bb4ba9e665e40a325d82aa2ee48d7b8abd603b (diff)
Improved pipe_region/surface_reference() functions
Now dereferences the old object first. Target object may be NULL to clear the pointer.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_fbo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index 2b9aa3e9d26..430ac715e54 100644
--- a/src/mesa/state_tracker/st_cb_fbo.c
+++ b/src/mesa/state_tracker/st_cb_fbo.c
@@ -351,7 +351,7 @@ st_finish_render_texture(GLcontext *ctx,
printf("FINISH RENDER TO TEXTURE surf=%p\n", strb->surface);
*/
- pipe_surface_unreference(&strb->surface);
+ pipe_surface_reference(&strb->surface, NULL);
_mesa_reference_renderbuffer(&att->Renderbuffer, NULL);