mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 14:23:06 +00:00
Merge pull request #1671 from lakkatv/xmb
Fix a segfault for ctx drivers non implementing image_buffer_init, like ...
This commit is contained in:
commit
62a0a99a84
@ -194,9 +194,9 @@ bool gfx_ctx_get_metrics(enum display_metric_types type, float *value)
|
||||
bool gfx_ctx_image_buffer_init(void *data, const video_info_t* info)
|
||||
{
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
if (!ctx)
|
||||
return false;
|
||||
return ctx->image_buffer_init(data, info);
|
||||
if (ctx && ctx->image_buffer_init)
|
||||
return ctx->image_buffer_init(data, info);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool gfx_ctx_image_buffer_write(void *data, const void *frame, unsigned width,
|
||||
|
Loading…
x
Reference in New Issue
Block a user