diff options
author | Brian Paul <[email protected]> | 2011-12-05 20:40:48 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-12-08 08:56:31 -0700 |
commit | eb3e1d8888ea37c7500ab964e8523a52a401bade (patch) | |
tree | 1b6d1b18cc7b97e8c3a5a0e7120f6bf0f86dbb1c | |
parent | e4bb884dfb51ec82f901007acf8206960a4f30bc (diff) |
mesa: simplify _mesa_remove_renderbuffer()
-rw-r--r-- | src/mesa/main/renderbuffer.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index 22df88c2c50..d82b19ad5ca 100644 --- a/src/mesa/main/renderbuffer.c +++ b/src/mesa/main/renderbuffer.c @@ -156,17 +156,9 @@ void _mesa_remove_renderbuffer(struct gl_framebuffer *fb, gl_buffer_index bufferName) { - struct gl_renderbuffer *rb; - assert(bufferName < BUFFER_COUNT); - - rb = fb->Attachment[bufferName].Renderbuffer; - if (!rb) - return; - - _mesa_reference_renderbuffer(&rb, NULL); - - fb->Attachment[bufferName].Renderbuffer = NULL; + _mesa_reference_renderbuffer(&fb->Attachment[bufferName].Renderbuffer, + NULL); } |