i965: Set context flags
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
ca2b1fcb30
commit
bf8644e64d
|
@ -77,6 +77,7 @@ brwCreateContext(int api,
|
|||
__DRIcontext *driContextPriv,
|
||||
unsigned major_version,
|
||||
unsigned minor_version,
|
||||
uint32_t flags,
|
||||
unsigned *error,
|
||||
void *sharedContextPrivate)
|
||||
{
|
||||
|
@ -359,6 +360,13 @@ brwCreateContext(int api,
|
|||
|
||||
ctx->Const.ForceGLSLExtensionsWarn = driQueryOptionb(&intel->optionCache, "force_glsl_extensions_warn");
|
||||
|
||||
ctx->Const.ContextFlags = 0;
|
||||
if ((flags & __DRI_CTX_FLAG_FORWARD_COMPATIBLE) != 0)
|
||||
ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT;
|
||||
|
||||
if ((flags & __DRI_CTX_FLAG_DEBUG) != 0)
|
||||
ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_DEBUG_BIT;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -1101,6 +1101,7 @@ bool brwCreateContext(int api,
|
|||
__DRIcontext *driContextPriv,
|
||||
unsigned major_version,
|
||||
unsigned minor_version,
|
||||
uint32_t flags,
|
||||
unsigned *error,
|
||||
void *sharedContextPrivate);
|
||||
|
||||
|
|
|
@ -645,6 +645,7 @@ brwCreateContext(int api,
|
|||
__DRIcontext *driContextPriv,
|
||||
unsigned major_version,
|
||||
unsigned minor_version,
|
||||
uint32_t flags,
|
||||
unsigned *error,
|
||||
void *sharedContextPrivate);
|
||||
|
||||
|
@ -710,8 +711,8 @@ intelCreateContext(gl_api api,
|
|||
#else
|
||||
success = brwCreateContext(api, mesaVis,
|
||||
driContextPriv,
|
||||
major_version, minor_version, error,
|
||||
sharedContextPrivate);
|
||||
major_version, minor_version, flags,
|
||||
error, sharedContextPrivate);
|
||||
#endif
|
||||
|
||||
if (success) {
|
||||
|
|
Loading…
Reference in New Issue