diff options
author | Jakob Bornecrantz <[email protected]> | 2009-11-10 08:55:26 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2009-11-10 10:00:04 +0100 |
commit | 3201c655e4c393d5ae794e6373de8ef705b979a4 (patch) | |
tree | e0cd77232a15da5f668d036c6e01747ada63ead9 /src/gallium/state_trackers | |
parent | fca8b2c3ae53695f8ff6e823cc316aab910490e5 (diff) |
st/xorg: Don't segfault when debug printing
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_exa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c index 19c0151e692..35fba249969 100644 --- a/src/gallium/state_trackers/xorg/xorg_exa.c +++ b/src/gallium/state_trackers/xorg/xorg_exa.c @@ -476,9 +476,9 @@ ExaPrepareComposite(int op, PicturePtr pSrcPicture, debug_printf("ExaPrepareComposite(%d, src=0x%p, mask=0x%p, dst=0x%p)\n", op, pSrcPicture, pMaskPicture, pDstPicture); debug_printf("\tFormats: src(%s), mask(%s), dst(%s)\n", - render_format_name(pSrcPicture->format), - render_format_name(pMaskPicture->format), - render_format_name(pDstPicture->format)); + pSrcPicture ? render_format_name(pSrcPicture->format) : "none", + pMaskPicture ? render_format_name(pMaskPicture->format) : "none", + pDstPicture ? render_format_name(pDstPicture->format) : "none"); #endif if (!exa->pipe) XORG_FALLBACK("accle not enabled"); |