diff options
author | Ian Romanick <[email protected]> | 2006-11-10 18:47:22 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2006-11-10 18:47:22 +0000 |
commit | 6e2c95253718e9ba294a788ba3bb37b7c9603409 (patch) | |
tree | c7cc4f62c9bb3f257249174cb7bd002d831ec479 /src/mesa/drivers/dri/savage/savagedd.c | |
parent | 0a3a1c6ae9294634b3b3f496c8bd428b79de8cfa (diff) |
Enable GLX_SGI_make_current_read.
Eliminate use of deprecated GetBufferSize interface. Keep framebuffer
state associated with the read-drawable and the draw-drawable up to
date.
Tested with progs/demos/wincopy.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagedd.c')
-rw-r--r-- | src/mesa/drivers/dri/savage/savagedd.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mesa/drivers/dri/savage/savagedd.c b/src/mesa/drivers/dri/savage/savagedd.c index ae19481f039..92431065bfb 100644 --- a/src/mesa/drivers/dri/savage/savagedd.c +++ b/src/mesa/drivers/dri/savage/savagedd.c @@ -95,24 +95,7 @@ static GLint savageGetParameteri(const GLcontext *ctx, GLint param) #endif -static void savageBufferSize(GLframebuffer *buffer, GLuint *width, GLuint *height) -{ - GET_CURRENT_CONTEXT(ctx); - savageContextPtr imesa = SAVAGE_CONTEXT(ctx); - - /* Need to lock to make sure the driDrawable is uptodate. This - * information is used to resize Mesa's software buffers, so it has - * to be correct. - */ - LOCK_HARDWARE(imesa); - *width = imesa->driDrawable->w; - *height = imesa->driDrawable->h; - UNLOCK_HARDWARE(imesa); -} - - void savageDDInitDriverFuncs( GLcontext *ctx ) { - ctx->Driver.GetBufferSize = savageBufferSize; ctx->Driver.GetString = savageDDGetString; } |