aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel_winsys/intel_screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/intel_winsys/intel_screen.c')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_screen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_screen.c b/src/mesa/drivers/dri/intel_winsys/intel_screen.c
index 81ab435f42e..fba0c47e598 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_screen.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_screen.c
@@ -46,6 +46,7 @@
#include "dri_bufpool.h"
#include "pipe/p_context.h"
+#include "state_tracker/st_cb_fbo.h"
@@ -308,10 +309,17 @@ intelCreateBuffer(__DRIscreenPrivate * driScrnPriv,
}
if (mesaVis->doubleBufferMode) {
+#if 01
intel_fb->color_rb[1]
= intel_new_renderbuffer_fb(rgbFormat);
_mesa_add_renderbuffer(&intel_fb->Base, BUFFER_BACK_LEFT,
&intel_fb->color_rb[1]->Base);
+#else
+ intel_fb->color_rb[1]
+ = st_new_renderbuffer_fb(rgbFormat);
+ _mesa_add_renderbuffer(&intel_fb->Base, BUFFER_BACK_LEFT,
+ &intel_fb->color_rb[1]->Base);
+#endif
}
if (mesaVis->depthBits == 24 && mesaVis->stencilBits == 8) {