summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-02 12:31:56 -0600
committerBrian <[email protected]>2007-11-05 08:04:47 -0700
commitd04938331a15a94682ee7909de0f073314171cde (patch)
tree55cb65716a607cf57be16c6743d734ca3f57f40e /src/mesa/drivers
parentd083cbb4db3801f82f6bbcf0a6306013498b5a3a (diff)
simplify intelSwapBuffers()
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c b/src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c
index 1deb138adf8..ceebc104966 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c
@@ -239,26 +239,18 @@ intelSwapBuffers(__DRIdrawablePrivate * dPriv)
{
if (dPriv->driContextPriv && dPriv->driContextPriv->driverPrivate) {
GET_CURRENT_CONTEXT(ctx);
- struct intel_context *intel;
if (ctx == NULL)
return;
- intel = intel_context(ctx);
-
if (ctx->Visual.doubleBufferMode) {
- GLboolean missed_target;
struct intel_framebuffer *intel_fb = dPriv->driverPrivate;
- int64_t ust;
+ struct pipe_surface *back_surf
+ = get_color_surface(intel_fb, BUFFER_BACK_LEFT);
_mesa_notifySwapBuffers(ctx); /* flush pending rendering comands */
- {
- struct pipe_surface *back_surf
- = get_color_surface(intel_fb, BUFFER_BACK_LEFT);
- intelDisplayBuffer(dPriv, back_surf, NULL);
- }
-
+ intelDisplayBuffer(dPriv, back_surf, NULL);
}
}
else {