summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-01-09 21:50:56 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-01 23:30:21 -0800
commit4aaaecbfa6fa810899ef04de44f9f79ec4d8134f (patch)
tree8dfa7a713e8745f68336b5267ef42e0a6025bd7e /src/gallium/drivers/r300/r300_context.c
parente9b08e7373c00306bce398ea8d34f42e54f98c6d (diff)
A bit of r300 cleanup.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r--src/gallium/drivers/r300/r300_context.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index 68751dae17..4050faa74a 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -41,12 +41,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
r300->winsys = amd_winsys;
r300->context.winsys = winsys;
- if (screen) {
- r300->context.screen = screen;
- } else {
- /* XXX second arg should be pciid, find a way to get it from winsys */
- r300->context.screen = r300_create_screen(winsys, 0x0);
- }
+ r300->context.screen = screen;
r300->context.destroy = r300_destroy_context;