summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/wgl/stw_context.c
diff options
context:
space:
mode:
authorAlexandre Demers <[email protected]>2011-12-24 11:06:19 +0000
committerJosé Fonseca <[email protected]>2011-12-24 11:11:33 +0000
commit3258cd9e611bb188e4b21d23cd5dd6cb0c0ff1ef (patch)
treebcfe118321beab63ccf19b2f90f70b0220a6c135 /src/gallium/state_trackers/wgl/stw_context.c
parente71375d375e2cc0d0a06fec6e7adbd1dd3a6a2fc (diff)
egl,glx,wgl: Fixes stapi->createContext usage
Fixed the build failure, fixed a warning where attributs and error arguments had been inverted and fixed another call that was missing an argument. Signed-off-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/wgl/stw_context.c')
-rw-r--r--src/gallium/state_trackers/wgl/stw_context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_context.c b/src/gallium/state_trackers/wgl/stw_context.c
index 2c4fb0ef084..abdcf1edfea 100644
--- a/src/gallium/state_trackers/wgl/stw_context.c
+++ b/src/gallium/state_trackers/wgl/stw_context.c
@@ -142,6 +142,7 @@ stw_create_context_attribs(
struct st_context_attribs attribs;
struct stw_context *ctx = NULL;
struct stw_context *shareCtx = NULL;
+ enum st_context_error ctx_err = 0;
if (!stw_dev)
return 0;
@@ -190,12 +191,12 @@ stw_create_context_attribs(
* WGL_CONTEXT_CORE_PROFILE_BIT_ARB."
*/
attribs.profile = ST_PROFILE_DEFAULT;
- if ((major > 3 || (major == 3 && minor >= 2))
+ if ((majorVersion > 3 || (majorVersion == 3 && minorVersion >= 2))
&& ((profileMask & WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB) == 0))
attribs.profile = ST_PROFILE_OPENGL_CORE;
ctx->st = stw_dev->stapi->create_context(stw_dev->stapi,
- stw_dev->smapi, &attribs, shareCtx ? shareCtx->st : NULL);
+ stw_dev->smapi, &attribs, &ctx_err, shareCtx ? shareCtx->st : NULL);
if (ctx->st == NULL)
goto no_st_ctx;