summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-04-28 19:46:56 +0100
committerKeith Whitwell <keithw@vmware.com>2009-05-08 14:57:26 +0100
commitbb9ea58f9502c7e54d03e3c2c21d20749f796c7c (patch)
tree85f16d3849129e3948bb757629e7495991dacf74
parent1248ff7d45ce4b78af8c7a091cb64f1f992f88dd (diff)
wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.
-rw-r--r--src/gallium/state_trackers/wgl/shared/stw_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/wgl/shared/stw_context.c b/src/gallium/state_trackers/wgl/shared/stw_context.c
index 0b5dd78ec6..473e3308c6 100644
--- a/src/gallium/state_trackers/wgl/shared/stw_context.c
+++ b/src/gallium/state_trackers/wgl/shared/stw_context.c
@@ -276,12 +276,12 @@ stw_get_current_context( void )
struct stw_context *ctx;
if(!glcurctx)
- return NULL;
+ return 0;
ctx = (struct stw_context *)glcurctx->DriverCtx;
assert(ctx);
if(!ctx)
- return NULL;
+ return 0;
return ctx->hglrc;
}