diff options
author | Ian Romanick <[email protected]> | 2015-11-11 14:29:18 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-02-10 10:59:33 -0800 |
commit | 1e055e9211fcb0a0e6595eeb433c580597a19dbd (patch) | |
tree | de3130fe36ca37367fbf9fbb2b2f926a09217200 /src/mesa | |
parent | eb5bc62e97d8f66696dca7d5c6acb616a55a16d1 (diff) |
i965/meta: Use _mesa_CreateRenderbuffers instead of _mesa_GenRenderbuffers and _mesa_BindRenderbuffer
This has the advantage that it does not pollute the global binding
state. It also enables later patches that will stop calling
_mesa_GenRenderbuffers / _mesa_CreateRenderbuffers which pollute the
renderbuffer namespace.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_meta_updownsample.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_meta_updownsample.c b/src/mesa/drivers/dri/i965/brw_meta_updownsample.c index f39d50a69e6..563160e599b 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_updownsample.c +++ b/src/mesa/drivers/dri/i965/brw_meta_updownsample.c @@ -55,13 +55,12 @@ brw_get_rb_for_slice(struct brw_context *brw, struct gl_renderbuffer *rb; struct intel_renderbuffer *irb; - /* This turns the GenRenderbuffers name into an actual struct + /* This turns the CreateRenderbuffers name into an actual struct * intel_renderbuffer. */ - _mesa_GenRenderbuffers(1, &rbo); - _mesa_BindRenderbuffer(GL_RENDERBUFFER, rbo); + _mesa_CreateRenderbuffers(1, &rbo); - rb = ctx->CurrentRenderbuffer; + rb = _mesa_lookup_renderbuffer(ctx, rbo); irb = intel_renderbuffer(rb); rb->Format = mt->format; |