diff options
Diffstat (limited to 'src/gallium/drivers/ddebug/dd_screen.c')
-rw-r--r-- | src/gallium/drivers/ddebug/dd_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ddebug/dd_screen.c b/src/gallium/drivers/ddebug/dd_screen.c index 4050e39a124..a0c0dd09092 100644 --- a/src/gallium/drivers/ddebug/dd_screen.c +++ b/src/gallium/drivers/ddebug/dd_screen.c @@ -243,7 +243,7 @@ dd_screen_resource_get_handle(struct pipe_screen *_screen, unsigned usage) { struct pipe_screen *screen = dd_screen(_screen)->screen; - struct pipe_context *pipe = dd_context(_pipe)->pipe; + struct pipe_context *pipe = _pipe ? dd_context(_pipe)->pipe : NULL; return screen->resource_get_handle(screen, pipe, resource, handle, usage); } |