dri/nouveau: Pass the API into _mesa_initialize_context
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 25 Jan 2014 15:23:41 +0000 (15:23 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 11 Feb 2014 19:00:09 +0000 (19:00 +0000)
commit76d9f6d9729db1c999317a6b44818aa90c30a0b3
treea7af819510c90530eccf7c17d465759ebec2e125
parent118c36adb4f2e3eec2327fccd59ed808f346aa73
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>
src/mesa/drivers/dri/nouveau/nouveau_context.c
src/mesa/drivers/dri/nouveau/nouveau_context.h
src/mesa/drivers/dri/nouveau/nouveau_driver.h
src/mesa/drivers/dri/nouveau/nv04_context.c
src/mesa/drivers/dri/nouveau/nv10_context.c
src/mesa/drivers/dri/nouveau/nv20_context.c