ref: ee1d777ebb70a9d7692ec5af8a99d4ad0942a15c
parent: a2cdd9ac18b149568be4b25ba934ecc93b53ef66
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Apr 23 09:41:24 EDT 2020
...Actually do what the last commit said
--- a/src/Backends/Rendering/WiiU.cpp
+++ b/src/Backends/Rendering/WiiU.cpp
@@ -380,7 +380,8 @@
GX2R_RESOURCE_USAGE_CPU_WRITE | GX2R_RESOURCE_USAGE_CPU_READ |
GX2R_RESOURCE_USAGE_GPU_WRITE | GX2R_RESOURCE_USAGE_GPU_READ);
- resource_flags = (GX2RResourceFlags)(resource_flags | GX2R_RESOURCE_BIND_COLOR_BUFFER);
+ if (render_target)
+ resource_flags = (GX2RResourceFlags)(resource_flags | GX2R_RESOURCE_BIND_COLOR_BUFFER);
if (GX2RCreateSurface(&surface->texture.surface, resource_flags))
{