Mesa (master): wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.
Keith Whitwell
keithw at kemper.freedesktop.org
Tue May 5 12:17:26 UTC 2009
Module: Mesa
Branch: master
Commit: ccec9f76d5ed032b627f5893f733ea0576311d51
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ccec9f76d5ed032b627f5893f733ea0576311d51
Author: José Fonseca <jfonseca at vmware.com>
Date: Tue Apr 28 19:46:56 2009 +0100
wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.
---
.../state_trackers/wgl/shared/stw_context.c | 4 ++--
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 0b5dd78..473e330 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;
}
More information about the mesa-commit
mailing list