summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-22 01:43:35 +0000
committer Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-22 01:43:35 +0000
commit2cd23c14765a433c589a9627ae01080cb1f3a5d8 (patch)
tree74534afb99c4eba6fc7089aeebe73c77ae0125a3
parent99dffc122e45c592bc10731755594e0ccbc0da1e (diff)
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
-rw-r--r--src/osd/windows/drawd3d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/windows/drawd3d.c b/src/osd/windows/drawd3d.c
index d18dcc712d4..dc00739e873 100644
--- a/src/osd/windows/drawd3d.c
+++ b/src/osd/windows/drawd3d.c
@@ -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)