From 8eb4e29b1041507e5824ac719be6a8a4c0f72f6c Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 4 Oct 2020 13:56:43 +0100 Subject: [PATCH] Remove needless parameter --- src/Backends/Rendering/WiiU.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Backends/Rendering/WiiU.cpp b/src/Backends/Rendering/WiiU.cpp index a6bbd741..e3406e6f 100644 --- a/src/Backends/Rendering/WiiU.cpp +++ b/src/Backends/Rendering/WiiU.cpp @@ -165,7 +165,7 @@ static void FlushVertexBuffer(void) current_vertex_buffer_slot = 0; } -static void Blit(RenderBackend_Surface *source_surface, const RenderBackend_Rect *source_rect, RenderBackend_Surface *destination_surface, const RenderBackend_Rect *destination_rect, bool colour_key, GX2Sampler *sampler) +static void Blit(RenderBackend_Surface *source_surface, const RenderBackend_Rect *source_rect, RenderBackend_Surface *destination_surface, const RenderBackend_Rect *destination_rect, bool colour_key) { const RenderMode render_mode = (colour_key ? MODE_DRAW_SURFACE_WITH_TRANSPARENCY : MODE_DRAW_SURFACE); @@ -199,7 +199,7 @@ static void Blit(RenderBackend_Surface *source_surface, const RenderBackend_Rect GX2SetVertexUniformReg(shader_group_glyph.vertexShader->uniformVars[1].offset, 4, (uint32_t*)texture_coordinate_transform); // Bind misc. data - GX2SetPixelSampler(sampler, shader->pixelShader->samplerVars[0].location); + GX2SetPixelSampler(&sampler_point, shader->pixelShader->samplerVars[0].location); GX2SetPixelTexture(&source_surface->texture, shader->pixelShader->samplerVars[0].location); // Disable blending @@ -461,12 +461,12 @@ void RenderBackend_DrawScreen(void) destination_rect.right = upscaled_framebuffer_surface_tv->texture.surface.width; destination_rect.bottom = upscaled_framebuffer_surface_tv->texture.surface.height; - Blit(framebuffer_surface, &source_rect, upscaled_framebuffer_surface_tv, &destination_rect, false, &sampler_point); + Blit(framebuffer_surface, &source_rect, upscaled_framebuffer_surface_tv, &destination_rect, false); destination_rect.right = upscaled_framebuffer_surface_drc->texture.surface.width; destination_rect.bottom = upscaled_framebuffer_surface_drc->texture.surface.height; - Blit(framebuffer_surface, &source_rect, upscaled_framebuffer_surface_drc, &destination_rect, false, &sampler_point); + Blit(framebuffer_surface, &source_rect, upscaled_framebuffer_surface_drc, &destination_rect, false); // Make sure the buffers aren't currently being used before we modify them GX2DrawDone(); @@ -701,7 +701,7 @@ void RenderBackend_Blit(RenderBackend_Surface *source_surface, const RenderBacke { RenderBackend_Rect destination_rect = {x, y, x + (rect->right - rect->left), y + (rect->bottom - rect->top)}; - Blit(source_surface, rect, destination_surface, &destination_rect, colour_key, &sampler_point); + Blit(source_surface, rect, destination_surface, &destination_rect, colour_key); } void RenderBackend_ColourFill(RenderBackend_Surface *surface, const RenderBackend_Rect *rect, unsigned char red, unsigned char green, unsigned char blue)