diff options
author | Ben Skeggs <darktama@iinet.net.au> | 2005-05-06 08:41:50 +0000 |
---|---|---|
committer | Ben Skeggs <darktama@iinet.net.au> | 2005-05-06 08:41:50 +0000 |
commit | e133984f517f2273236ca8b22c2a94276c950c55 (patch) | |
tree | ad5d5678e68cf405fd585d179e7a166f32db1a2f /src/mesa/drivers/dri/r300/radeon_context.c | |
parent | bd8162aaac225fdbdc228c4419d08fa3751b9af6 (diff) |
Updated for EXT_framebuffer_object changes. I don't know if this is correct, but it seems to work
Diffstat (limited to 'src/mesa/drivers/dri/r300/radeon_context.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/radeon_context.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_context.c b/src/mesa/drivers/dri/r300/radeon_context.c index a82070c561..8c712dc203 100644 --- a/src/mesa/drivers/dri/r300/radeon_context.c +++ b/src/mesa/drivers/dri/r300/radeon_context.c @@ -41,6 +41,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "context.h" #include "state.h" #include "matrix.h" +#include "framebuffer.h" #include "drivers/common/driverfuncs.h" #include "swrast/swrast.h" @@ -118,7 +119,7 @@ static void radeonGetBufferSize(GLframebuffer * buffer, static void radeonInitDriverFuncs(struct dd_function_table *functions) { functions->GetBufferSize = radeonGetBufferSize; - functions->ResizeBuffers = _swrast_alloc_buffers; + functions->ResizeBuffers = _mesa_resize_framebuffer; functions->GetString = radeonGetString; } @@ -279,7 +280,7 @@ GLboolean radeonMakeCurrent(__DRIcontextPrivate * driContextPriv, #endif } - _mesa_make_current2(radeon->glCtx, + _mesa_make_current(radeon->glCtx, (GLframebuffer *) driDrawPriv-> driverPrivate, (GLframebuffer *) driReadPriv-> @@ -300,7 +301,7 @@ GLboolean radeonMakeCurrent(__DRIcontextPrivate * driContextPriv, } else { if (RADEON_DEBUG & DEBUG_DRI) fprintf(stderr, "%s ctx is null\n", __FUNCTION__); - _mesa_make_current(0, 0); + _mesa_make_current(0, 0, 0); } if (RADEON_DEBUG & DEBUG_DRI) |