OSDN Git Service

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>
Fri, 8 May 2009 13:57:26 +0000 (14:57 +0100)
src/gallium/state_trackers/wgl/shared/stw_context.c

index 0b5dd78..473e330 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;
 }