mirror of
https://github.com/holub/mame
synced 2025-04-27 02:33:13 +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:
|
error:
|
||||||
d3dintf->post_fx_available = false;
|
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)
|
if (texture->d3dsurface != NULL)
|
||||||
(*d3dintf->surface.release)(texture->d3dsurface);
|
(*d3dintf->surface.release)(texture->d3dsurface);
|
||||||
if (texture->d3dtex != NULL)
|
if (texture->d3dtex != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user