wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.
This commit is contained in:

committed by
Keith Whitwell

parent
a47f15ba1d
commit
ccec9f76d5
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user