projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b671909
)
ddebug: fix a crash in resource_get_handle
author
Marek Olšák
<marek.olsak@amd.com>
Sat, 10 Sep 2016 07:50:42 +0000
(09:50 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Tue, 13 Sep 2016 18:38:25 +0000
(20:38 +0200)
broken recently
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/ddebug/dd_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ddebug/dd_screen.c
b/src/gallium/drivers/ddebug/dd_screen.c
index 4050e39a124e53d555e99cf56c7b830811fa996b..a0c0dd09092ee12f11959a9c152e2a19d411b35d 100644
(file)
--- 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);
}