aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-04-28 19:46:56 +0100
committerKeith Whitwell <[email protected]>2009-05-05 13:14:44 +0100
commitccec9f76d5ed032b627f5893f733ea0576311d51 (patch)
tree5e92e3640996848f1386eb25c262f3b508d5f28d
parenta47f15ba1da4c7f8649d7064dfc23cf571df705c (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 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;
}