summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-06 20:42:23 +0000
committerBrian Paul <[email protected]>2005-09-06 20:42:23 +0000
commitd869a43554be8791072f7e7070041ee3b2323815 (patch)
tree09c8ec8167a6d259e9a1be58a5c24917e0471150 /src/mesa
parent20354edf3512d9984ff7ce188f2e580b29777af1 (diff)
added viaRenderbufferStorage() function
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_context.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c
index 0dd787e9897..0f504ee6951 100644
--- a/src/mesa/drivers/dri/unichrome/via_context.c
+++ b/src/mesa/drivers/dri/unichrome/via_context.c
@@ -129,11 +129,21 @@ buffer_align( unsigned width )
static void
-nop_delete_renderbuffer(struct gl_renderbuffer *rb)
+viaDeleteRenderbuffer(struct gl_renderbuffer *rb)
{
/* Don't free() since we're contained in via_context struct. */
}
+static GLboolean
+viaRenderbufferStorage(GLcontext *ctx, struct gl_renderbuffer *rb,
+ GLenum internalFormat, GLuint width, GLuint height)
+{
+ rb->Width = width;
+ rb->Height = height;
+ rb->InternalFormat = internalFormat;
+ return GL_TRUE;
+}
+
static void
viaInitRenderbuffer(struct gl_renderbuffer *rb, GLenum format)
@@ -171,7 +181,8 @@ viaInitRenderbuffer(struct gl_renderbuffer *rb, GLenum format)
rb->DataType = GL_UNSIGNED_BYTE;
}
- rb->Delete = nop_delete_renderbuffer;
+ rb->Delete = viaDeleteRenderbuffer;
+ rb->AllocStorage = viaRenderbufferStorage;
}