summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_renderbuffer.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-16 12:35:45 -0700
committerBrian Paul <[email protected]>2012-01-24 14:12:30 -0700
commitf2479530b8be3866c234ac759a7fa84e634dd1aa (patch)
tree5d80f2937bfb46f55726e4e094b4694a641f1410 /src/mesa/swrast/s_renderbuffer.c
parent34988272d9c7a889a26bb8bdcb841d44797a5dd6 (diff)
swrast: allocate swrast_renderbuffers instead of gl_renderbuffers
Diffstat (limited to 'src/mesa/swrast/s_renderbuffer.c')
-rw-r--r--src/mesa/swrast/s_renderbuffer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/swrast/s_renderbuffer.c b/src/mesa/swrast/s_renderbuffer.c
index 52697f2ac75..af02b02f1ba 100644
--- a/src/mesa/swrast/s_renderbuffer.c
+++ b/src/mesa/swrast/s_renderbuffer.c
@@ -259,7 +259,7 @@ add_color_renderbuffers(struct gl_context *ctx, struct gl_framebuffer *fb,
assert(fb->Attachment[b].Renderbuffer == NULL);
- rb = _mesa_new_renderbuffer(ctx, 0);
+ rb = ctx->Driver.NewRenderbuffer(ctx, 0);
if (!rb) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "Allocating color buffer");
return GL_FALSE;
@@ -297,7 +297,7 @@ add_depth_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb,
assert(fb->Attachment[BUFFER_DEPTH].Renderbuffer == NULL);
- rb = _mesa_new_renderbuffer(ctx, 0);
+ rb = _swrast_new_soft_renderbuffer(ctx, 0);
if (!rb) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "Allocating depth buffer");
return GL_FALSE;
@@ -342,7 +342,7 @@ add_stencil_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb,
assert(fb->Attachment[BUFFER_STENCIL].Renderbuffer == NULL);
- rb = _mesa_new_renderbuffer(ctx, 0);
+ rb = _swrast_new_soft_renderbuffer(ctx, 0);
if (!rb) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "Allocating stencil buffer");
return GL_FALSE;
@@ -367,7 +367,7 @@ add_depth_stencil_renderbuffer(struct gl_context *ctx,
assert(fb->Attachment[BUFFER_DEPTH].Renderbuffer == NULL);
assert(fb->Attachment[BUFFER_STENCIL].Renderbuffer == NULL);
- rb = _mesa_new_renderbuffer(ctx, 0);
+ rb = _swrast_new_soft_renderbuffer(ctx, 0);
if (!rb) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "Allocating depth+stencil buffer");
return GL_FALSE;
@@ -406,7 +406,7 @@ add_accum_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb,
assert(fb->Attachment[BUFFER_ACCUM].Renderbuffer == NULL);
- rb = _mesa_new_renderbuffer(ctx, 0);
+ rb = _swrast_new_soft_renderbuffer(ctx, 0);
if (!rb) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "Allocating accum buffer");
return GL_FALSE;
@@ -446,7 +446,7 @@ add_aux_renderbuffers(struct gl_context *ctx, struct gl_framebuffer *fb,
assert(numBuffers <= MAX_AUX_BUFFERS);
for (i = 0; i < numBuffers; i++) {
- struct gl_renderbuffer *rb = _mesa_new_renderbuffer(ctx, 0);
+ struct gl_renderbuffer *rb = _swrast_new_soft_renderbuffer(ctx, 0);
assert(fb->Attachment[BUFFER_AUX0 + i].Renderbuffer == NULL);