summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_texrender.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_texrender.c
parent34988272d9c7a889a26bb8bdcb841d44797a5dd6 (diff)
swrast: allocate swrast_renderbuffers instead of gl_renderbuffers
Diffstat (limited to 'src/mesa/swrast/s_texrender.c')
-rw-r--r--src/mesa/swrast/s_texrender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_texrender.c b/src/mesa/swrast/s_texrender.c
index ebfba6d5da8..23a7388c0d2 100644
--- a/src/mesa/swrast/s_texrender.c
+++ b/src/mesa/swrast/s_texrender.c
@@ -37,7 +37,7 @@ wrap_texture(struct gl_context *ctx, struct gl_renderbuffer_attachment *att)
ASSERT(att->Type == GL_TEXTURE);
ASSERT(att->Renderbuffer == NULL);
- rb = CALLOC_STRUCT(gl_renderbuffer);
+ rb = ctx->Driver.NewRenderbuffer(ctx, name);
if (!rb) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "wrap_texture");
return;