diff options
author | Chad Versace <[email protected]> | 2017-05-26 17:26:07 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2017-06-01 12:41:30 -0700 |
commit | a23cabd8ca19b8e6f2d757e89f591143ba439678 (patch) | |
tree | 84dcc343e6bc3e224d8ada8a341d0ff4f015682b /src | |
parent | 6551655ffdce88787ae2fd2cc33de70dda34b601 (diff) |
i965: Cleanup in intel_create_winsys_renderbuffer()
Combine variable declarations and assignments.
Trivial cleanup.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index d3905a5f7fe..d69b9216a20 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -440,18 +440,15 @@ intel_nop_alloc_storage(struct gl_context * ctx, struct gl_renderbuffer *rb, struct intel_renderbuffer * intel_create_winsys_renderbuffer(mesa_format format, unsigned num_samples) { - struct intel_renderbuffer *irb; - struct gl_renderbuffer *rb; - GET_CURRENT_CONTEXT(ctx); - irb = CALLOC_STRUCT(intel_renderbuffer); + struct intel_renderbuffer *irb = CALLOC_STRUCT(intel_renderbuffer); if (!irb) { _mesa_error(ctx, GL_OUT_OF_MEMORY, "creating renderbuffer"); return NULL; } - rb = &irb->Base.Base; + struct gl_renderbuffer *rb = &irb->Base.Base; irb->layer_count = 1; _mesa_init_renderbuffer(rb, 0); |