[Mesa-dev] [PATCH 4/8] st/dri: pass optionCache in the st_context_attribs

Vadim Girlin vadimgirlin at gmail.com
Mon Apr 9 08:32:35 PDT 2012


Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---
 .../state_trackers/dri/common/dri_context.c        |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c
index 780cab1..bf115e9 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.c
+++ b/src/gallium/state_trackers/dri/common/dri_context.c
@@ -114,6 +114,8 @@ dri_create_context(gl_api api, const struct gl_config * visual,
    driParseConfigFiles(&ctx->optionCache,
 		       &screen->optionCache, sPriv->myNum, driverName);
 
+   attribs.optionCache = &ctx->optionCache;
+
    dri_fill_st_visual(&attribs.visual, screen, visual);
    ctx->st = stapi->create_context(stapi, &screen->base, &attribs, &ctx_err,
 				   st_share);
-- 
1.7.7.6



More information about the mesa-dev mailing list