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
1248ff7d45
commit
bb9ea58f95
@@ -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