OSDN Git Service

radeon/r200: add fbo init
authorDave Airlie <airlied@redhat.com>
Sat, 21 Mar 2009 11:38:11 +0000 (22:38 +1100)
committerDave Airlie <airlied@redhat.com>
Sat, 21 Mar 2009 11:38:11 +0000 (22:38 +1100)
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/radeon/radeon_context.c

index 10a6362..e29a7a7 100644 (file)
@@ -453,6 +453,7 @@ GLboolean r200CreateContext( const __GLcontextModes *glVisual,
 #endif
    /* plug in a few more device driver functions */
    /* XXX these should really go right after _mesa_init_driver_functions() */
+   radeon_fbo_init(&r300->radeon);
    radeonInitSpanFuncs( ctx );
    r200InitPixelFuncs( ctx );
    r200InitTnlFuncs( ctx );
index 47ebe41..933c76d 100644 (file)
@@ -352,6 +352,7 @@ radeonCreateContext( const __GLcontextModes *glVisual,
       _mesa_enable_extension( ctx, "GL_NV_texture_rectangle");
 
    /* XXX these should really go right after _mesa_init_driver_functions() */
+   radeon_fbo_init(&r300->radeon);
    radeonInitSpanFuncs( ctx );
    radeonInitIoctlFuncs( ctx );
    radeonInitStateFuncs( ctx );