wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 28 Apr 2009 18:46:56 +0000 (19:46 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 5 May 2009 12:14:44 +0000 (13:14 +0100)
src/gallium/state_trackers/wgl/shared/stw_context.c

index 0b5dd78ec6321ab748eefc002af66bc1d154084b..473e3308c6cc4a784b67fa7590603d27273e87bb 100644 (file)
@@ -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;
 }