mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
wgl: return before locking if stw_icd is NULL
This commit is contained in:
parent
9c9ba66fba
commit
f54149a3a3
1 changed files with 17 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ stw_icd_cleanup(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
if(!stw_icd)
|
||||
if (!stw_icd)
|
||||
return;
|
||||
|
||||
pipe_mutex_lock( stw_icd->mutex );
|
||||
|
|
@ -115,6 +115,9 @@ DrvCopyContext(
|
|||
{
|
||||
BOOL ret = FALSE;
|
||||
|
||||
if (!stw_icd)
|
||||
return FALSE;
|
||||
|
||||
pipe_mutex_lock( stw_icd->mutex );
|
||||
{
|
||||
struct stw_context *src = lookup_context( stw_icd, dhrcSource );
|
||||
|
|
@ -136,7 +139,10 @@ DrvCreateLayerContext(
|
|||
HDC hdc,
|
||||
INT iLayerPlane )
|
||||
{
|
||||
DHGLRC handle = 0;;
|
||||
DHGLRC handle = 0;
|
||||
|
||||
if (!stw_icd)
|
||||
return handle;
|
||||
|
||||
pipe_mutex_lock( stw_icd->mutex );
|
||||
{
|
||||
|
|
@ -179,6 +185,9 @@ DrvDeleteContext(
|
|||
{
|
||||
BOOL ret = FALSE;
|
||||
|
||||
if (!stw_icd)
|
||||
return ret;
|
||||
|
||||
pipe_mutex_lock( stw_icd->mutex );
|
||||
{
|
||||
struct stw_context *ctx;
|
||||
|
|
@ -273,6 +282,9 @@ DrvReleaseContext(
|
|||
{
|
||||
BOOL ret = FALSE;
|
||||
|
||||
if (!stw_icd)
|
||||
return ret;
|
||||
|
||||
pipe_mutex_lock( stw_icd->mutex );
|
||||
{
|
||||
struct stw_context *ctx;
|
||||
|
|
@ -661,6 +673,9 @@ DrvSetContext(
|
|||
{
|
||||
PGLCLTPROCTABLE result = NULL;
|
||||
|
||||
if (!stw_icd)
|
||||
return result;
|
||||
|
||||
pipe_mutex_lock( stw_icd->mutex );
|
||||
{
|
||||
struct stw_context *ctx;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue