amd: Fix uninitialized pipe_screen.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 24 Jan 2009 00:34:00 +0000 (16:34 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 07:30:27 +0000 (23:30 -0800)
src/gallium/winsys/drm/amd/amd_context.c

index 7a486c93a59eefb59f8c627794d1880cff54864d..df8eb850c814eb38ad92a0d73b3860506853f032 100644 (file)
@@ -243,11 +243,12 @@ GLboolean amd_context_create(const __GLcontextModes *visual,
     }
 
     if (GL_TRUE) {
-        fprintf(stderr, "Creating r300 context...");
+        fprintf(stderr, "Creating r300 context...\n");
         pipe =
             r300_create_context(NULL,
                                 amd_context->pipe_winsys,
                                 amd_create_r300_winsys(amd_context->drm_fd));
+        amd_context->pipe_screen = pipe->screen;
     } else {
         pipe = amd_create_softpipe(amd_context);
     }