diff options
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 6b551ea3f9..a61e7e1b1b 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; |