i965: Rename brwCreateContext's error parameter to dri_ctx_error.
"error" is a very generic name. dri_ctx_error is the name used in intelInitContext(), which is more specific. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
95bd8a332d
commit
3f7b4e5d04
|
@ -282,7 +282,7 @@ brwCreateContext(gl_api api,
|
|||
unsigned major_version,
|
||||
unsigned minor_version,
|
||||
uint32_t flags,
|
||||
unsigned *error,
|
||||
unsigned *dri_ctx_error,
|
||||
void *sharedContextPrivate)
|
||||
{
|
||||
__DRIscreen *sPriv = driContextPriv->driScreenPriv;
|
||||
|
@ -292,7 +292,7 @@ brwCreateContext(gl_api api,
|
|||
struct brw_context *brw = rzalloc(NULL, struct brw_context);
|
||||
if (!brw) {
|
||||
printf("%s: failed to alloc context\n", __FUNCTION__);
|
||||
*error = __DRI_CTX_ERROR_NO_MEMORY;
|
||||
*dri_ctx_error = __DRI_CTX_ERROR_NO_MEMORY;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -310,7 +310,7 @@ brwCreateContext(gl_api api,
|
|||
if (!intelInitContext( brw, api, major_version, minor_version,
|
||||
mesaVis, driContextPriv,
|
||||
sharedContextPrivate, &functions,
|
||||
error)) {
|
||||
dri_ctx_error)) {
|
||||
intelDestroyContext(driContextPriv);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue