From e6ee8818af89a0b20e62840e6e8434ac03fc471f Mon Sep 17 00:00:00 2001 From: HyperspaceMadness Date: Sun, 8 Nov 2020 12:21:09 -0500 Subject: [PATCH] Shaders_improve_message_for_textures_not_found --- gfx/drivers_shader/slang_reflection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_shader/slang_reflection.cpp b/gfx/drivers_shader/slang_reflection.cpp index 9d4ca97473..7e6179f512 100644 --- a/gfx/drivers_shader/slang_reflection.cpp +++ b/gfx/drivers_shader/slang_reflection.cpp @@ -600,8 +600,10 @@ bool slang_reflect( } else if (index == SLANG_INVALID_TEXTURE_SEMANTIC) { - RARCH_ERR("[slang]: Non-semantic textures not supported yet, " - "Probably a texture name or pass alias is not found. \n"); + RARCH_ERR("[slang]: Texture name '%s' not found in semantic map, " + "Probably the texture name or pass alias is not defined " + "in the preset (Non-semantic textures not supported yet)\n", + fragment.sampled_images[i].name.c_str()); return false; }