summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-08-22 18:54:50 -0600
committerBrian Paul <[email protected]>2010-08-22 18:54:55 -0600
commitc94256e83b6d482cb0c92e09b9f3275894fdc1b8 (patch)
treef7e494b8b2ed115b86ee9db6cb7310fd9903c156 /src/mesa/main
parented57286b75e337b29204cc998462a50a6fe47bc2 (diff)
mesa: use driver hook for creating new renderbuffers
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/depthstencil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/depthstencil.c b/src/mesa/main/depthstencil.c
index 885e718a767..dbaa8416457 100644
--- a/src/mesa/main/depthstencil.c
+++ b/src/mesa/main/depthstencil.c
@@ -359,7 +359,7 @@ _mesa_new_z24_renderbuffer_wrapper(GLcontext *ctx,
dsrb->Format == MESA_FORMAT_X8_Z24);
ASSERT(dsrb->DataType == GL_UNSIGNED_INT_24_8_EXT);
- z24rb = _mesa_new_renderbuffer(ctx, 0);
+ z24rb = ctx->Driver.NewRenderbuffer(ctx, 0);
if (!z24rb)
return NULL;
@@ -645,7 +645,7 @@ _mesa_new_s8_renderbuffer_wrapper(GLcontext *ctx, struct gl_renderbuffer *dsrb)
dsrb->Format == MESA_FORMAT_S8_Z24);
ASSERT(dsrb->DataType == GL_UNSIGNED_INT_24_8_EXT);
- s8rb = _mesa_new_renderbuffer(ctx, 0);
+ s8rb = ctx->Driver.NewRenderbuffer(ctx, 0);
if (!s8rb)
return NULL;