cso_set_framebuffer(st->cso_context, framebuffer);
-#if 0
- if (fb->_ColorDrawBufferMask[0] & BUFFER_BIT_FRONT_LEFT) {
+ if (fb->_ColorDrawBufferIndexes[0] == BUFFER_FRONT_LEFT) {
if (st->frontbuffer_status == FRONT_STATUS_COPY_OF_BACK) {
/* XXX copy back buf to front? */
}
/* we're assuming we'll really draw to the front buffer */
st->frontbuffer_status = FRONT_STATUS_DIRTY;
}
-#else
-#if !defined(PIPE_OS_WINDOWS)
-#warning "fix me"
-#endif
- if (fb->_ColorDrawBufferIndexes[0] == BUFFER_FRONT_LEFT) {
- st->frontbuffer_status = FRONT_STATUS_DIRTY;
- }
-#endif
}