i965: Rename brwCreateContext's error parameter to dri_ctx_error.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 25 Sep 2013 22:48:41 +0000 (15:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 13 Oct 2013 07:10:43 +0000 (00:10 -0700)
"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>
src/mesa/drivers/dri/i965/brw_context.c

index 5d5f41a32fe5e9d0fb16cf19ec4930a1b7ded0bb..5494fcd632420e882b5f26da84812af20de39405 100644 (file)
@@ -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;
    }