summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_driver.h
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-01-25 15:23:41 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2014-02-11 19:00:09 +0000
commit76d9f6d9729db1c999317a6b44818aa90c30a0b3 (patch)
treea7af819510c90530eccf7c17d465759ebec2e125 /src/mesa/drivers/dri/nouveau/nouveau_driver.h
parent118c36adb4f2e3eec2327fccd59ed808f346aa73 (diff)
downloadmesa-76d9f6d9729db1c999317a6b44818aa90c30a0b3.tar.gz
dri/nouveau: Pass the API into _mesa_initialize_context
Currently we create a OPENGL_COMPAT context regardless of what was requested by the program. Correct that by retaining the program's request and passing it into _mesa_initialize_context. Based on a similar commit for radeon/r200 by Ian Romanick. Cc: "9.1 9.2 10.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_driver.h')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_driver.h b/src/mesa/drivers/dri/nouveau/nouveau_driver.h
index e03b2c1f98d..b6a827634c8 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_driver.h
+++ b/src/mesa/drivers/dri/nouveau/nouveau_driver.h
@@ -48,6 +48,7 @@
struct nouveau_driver {
struct gl_context *(*context_create)(struct nouveau_screen *screen,
+ gl_api api,
const struct gl_config *visual,
struct gl_context *share_ctx);
void (*context_destroy)(struct gl_context *ctx);