diff options
author | Jakob Bornecrantz <[email protected]> | 2010-04-24 14:05:59 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-04-26 00:40:17 +0100 |
commit | 27779ddad5c61d2fc46367e1556b5e53403c2a97 (patch) | |
tree | 7ad6054cd497b955a0fdde2a36b7332e45af659a /src/gallium/state_trackers/dri/common/dri_drawable.c | |
parent | a66b391edf746a5eb0cb4aad1ff2e546df00a11d (diff) |
st/dri: Make st_framebuffer_iface the base for dri_drawable
Diffstat (limited to 'src/gallium/state_trackers/dri/common/dri_drawable.c')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_drawable.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_drawable.c b/src/gallium/state_trackers/dri/common/dri_drawable.c index 6b551ea3f96..a61e7e1b1b4 100644 --- a/src/gallium/state_trackers/dri/common/dri_drawable.c +++ b/src/gallium/state_trackers/dri/common/dri_drawable.c @@ -58,9 +58,7 @@ dri_create_buffer(__DRIscreen * sPriv, goto fail; dri_fill_st_visual(&drawable->stvis, screen, visual); - drawable->stfb = dri_create_st_framebuffer(drawable); - if (drawable->stfb == NULL) - goto fail; + dri_init_st_framebuffer(drawable); drawable->sPriv = sPriv; drawable->dPriv = dPriv; @@ -83,7 +81,7 @@ dri_destroy_buffer(__DRIdrawable * dPriv) dri1_destroy_pipe_surface(drawable); - dri_destroy_st_framebuffer(drawable->stfb); + dri_close_st_framebuffer(drawable); drawable->desired_fences = 0; |