diff options
author | Marek Olšák <[email protected]> | 2016-09-10 09:50:42 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-09-13 20:38:25 +0200 |
commit | fdd457c89fb5d210d29f878704969d85abd91e8f (patch) | |
tree | 82bbe093d3c7af0dc1eb471e5b3b1b5dc383e694 /src/gallium | |
parent | b671909d2799b86fd30ae89a5ad1fe4973250680 (diff) |
ddebug: fix a crash in resource_get_handle
broken recently
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-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); } |