mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
Made texture_create display a verbose message if texture creation fails, as texture creation failure leads to a crash and thus the user should know about it, nwn
This commit is contained in:
parent
99dffc122e
commit
2cd23c1476
@ -2784,6 +2784,7 @@ static texture_info *texture_create(d3d_info *d3d, const render_texinfo *texsour
|
||||
|
||||
error:
|
||||
d3dintf->post_fx_available = false;
|
||||
mame_printf_verbose("Direct3D: Critical warning: A texture failed to allocate. Expect things to get bad quickly.\n");
|
||||
if (texture->d3dsurface != NULL)
|
||||
(*d3dintf->surface.release)(texture->d3dsurface);
|
||||
if (texture->d3dtex != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user