OSDN Git Service

radeon/r200: oops make correct fbo init calls
authorDave Airlie <airlied@linux.ie>
Sat, 21 Mar 2009 12:35:01 +0000 (22:35 +1000)
committerDave Airlie <airlied@linux.ie>
Sat, 21 Mar 2009 12:35:01 +0000 (22:35 +1000)
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/radeon/radeon_context.c

index e29a7a7..57852a0 100644 (file)
@@ -453,7 +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);
+   radeon_fbo_init(&r200->radeon);
    radeonInitSpanFuncs( ctx );
    r200InitPixelFuncs( ctx );
    r200InitTnlFuncs( ctx );
index 933c76d..3f69de8 100644 (file)
@@ -352,7 +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);
+   radeon_fbo_init(&rmesa->radeon);
    radeonInitSpanFuncs( ctx );
    radeonInitIoctlFuncs( ctx );
    radeonInitStateFuncs( ctx );