continue;
bufObj = st_buffer_object(bufObjs[i]);
- pipe->flush_resource(pipe, bufObj->buffer);
+ if (bufObj->buffer)
+ pipe->flush_resource(pipe, bufObj->buffer);
}
for (unsigned i = 0; i < numTextureBarriers; i++) {
continue;
texObj = st_texture_object(texObjs[i]);
- pipe->flush_resource(pipe, texObj->pt);
+ if (texObj->pt)
+ pipe->flush_resource(pipe, texObj->pt);
}
}
continue;
bufObj = st_buffer_object(bufObjs[i]);
- pipe->flush_resource(pipe, bufObj->buffer);
+ if (bufObj->buffer)
+ pipe->flush_resource(pipe, bufObj->buffer);
}
for (unsigned i = 0; i < numTextureBarriers; i++) {
continue;
texObj = st_texture_object(texObjs[i]);
- pipe->flush_resource(pipe, texObj->pt);
+ if (texObj->pt)
+ pipe->flush_resource(pipe, texObj->pt);
}
/* The driver is allowed to flush during fence_server_signal, be prepared */