mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
radeon: Fix null pointer reference in debug system if no context is bind.
This commit is contained in:
parent
d028cf9313
commit
c4a3e036ed
1 changed files with 6 additions and 3 deletions
|
|
@ -91,8 +91,11 @@ extern void _radeon_print(const radeon_debug_type_t type,
|
|||
va_list values)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
radeonContextPtr radeon = RADEON_CONTEXT(ctx);
|
||||
// FIXME: Make this multi thread safe
|
||||
fprintf(stderr, "%s", radeon->debug.indent);
|
||||
if (ctx) {
|
||||
radeonContextPtr radeon = RADEON_CONTEXT(ctx);
|
||||
// FIXME: Make this multi thread safe
|
||||
if (radeon->debug.indent_depth)
|
||||
fprintf(stderr, "%s", radeon->debug.indent);
|
||||
}
|
||||
vfprintf(stderr, message, values);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue