move a few lines of code
authorBrian <brian.paul@tungstengraphics.com>
Wed, 31 Oct 2007 18:07:03 +0000 (12:07 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 31 Oct 2007 18:07:03 +0000 (12:07 -0600)
src/mesa/drivers/dri/intel_winsys/intel_context.c

index 790f67b..6c88049 100644 (file)
@@ -225,6 +225,10 @@ intelCreateContext(const __GLcontextModes * mesaVis,
    intel->iw.irq_seq = -1;
    intel->irqsEmitted = 0;
 
+   intel->batch = intel_batchbuffer_alloc(intel);
+   intel->last_swap_fence = NULL;
+   intel->first_swap_fence = NULL;
+
    /* Disable imaging extension until convolution is working in
     * teximage paths:
     */
@@ -232,11 +236,6 @@ intelCreateContext(const __GLcontextModes * mesaVis,
 /*                   GL_TRUE, */
                      GL_FALSE);
 
-
-   intel->batch = intel_batchbuffer_alloc(intel);
-   intel->last_swap_fence = NULL;
-   intel->first_swap_fence = NULL;
-
    if (intel->ctx.Mesa_DXTn) {
       _mesa_enable_extension(ctx, "GL_EXT_texture_compression_s3tc");
       _mesa_enable_extension(ctx, "GL_S3_s3tc");