ref: e1779248d9f6dd9973c7a5a319e81bbfc4528c6a
parent: c454f4426dea6fd05b76a56e7990790abd61c01c
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Apr 21 18:22:00 EDT 2020
Add error-prints to Wii U renderer
--- a/src/Backends/Rendering/WiiU.cpp
+++ b/src/Backends/Rendering/WiiU.cpp
@@ -196,6 +196,10 @@
return framebuffer_surface;
}
+ else
+ {
+ Backend_PrintError("Couldn't create the framebuffer surface");
+ }
GX2RDestroyBufferEx(&texture_coordinate_buffer, (GX2RResourceFlags)0);
GX2RDestroyBufferEx(&vertex_position_buffer, (GX2RResourceFlags)0);
@@ -202,15 +206,31 @@
WHBGfxFreeShaderGroup(&glyph_shader);
}
+ else
+ {
+ Backend_PrintError("Couldn't create the glyph shader");
+ }
WHBGfxFreeShaderGroup(&colour_fill_shader);
}
+ else
+ {
+ Backend_PrintError("Couldn't create the colour-fill shader");
+ }
WHBGfxFreeShaderGroup(&texture_colour_key_shader);
}
+ else
+ {
+ Backend_PrintError("Couldn't create the texture colour-key shader");
+ }
WHBGfxFreeShaderGroup(&texture_shader);
}
+ else
+ {
+ Backend_PrintError("Couldn't create the texture shader");
+ }
WHBGfxShutdown();
@@ -365,9 +385,16 @@
if (GX2RCreateSurfaceUserMemory(&surface->colour_buffer.surface, (uint8_t*)surface->texture.surface.image, (uint8_t*)surface->texture.surface.mipmaps, surface->texture.surface.resourceFlags))
return surface;
+ else
+ Backend_PrintError("GX2RCreateSurfaceUserMemory failed in RenderBackend_CreateSurface");
+
GX2RDestroySurfaceEx(&surface->texture.surface, (GX2RResourceFlags)0);
}
+ else
+ {
+ Backend_PrintError("GX2RCreateSurface failedin RenderBackend_CreateSurface");
+ }
free(surface);
}
@@ -613,6 +640,10 @@
GX2RUnlockSurfaceEx(&glyph->texture.surface, 0, (GX2RResourceFlags)0);
return glyph;
+ }
+ else
+ {
+ Backend_PrintError("GX2RCreateSurface failed in RenderBackend_LoadGlyph");
}
free(glyph);