summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/wgl/shared
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-04-28 19:46:56 +0100
committerKeith Whitwell <[email protected]>2009-05-08 14:57:26 +0100
commitbb9ea58f9502c7e54d03e3c2c21d20749f796c7c (patch)
tree85f16d3849129e3948bb757629e7495991dacf74 /src/gallium/state_trackers/wgl/shared
parent1248ff7d45ce4b78af8c7a091cb64f1f992f88dd (diff)
wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.
Diffstat (limited to 'src/gallium/state_trackers/wgl/shared')
-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 0b5dd78ec63..473e3308c6c 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;
}