diff --git a/src/render/wiiu/SDL_render_wiiu.c b/src/render/wiiu/SDL_render_wiiu.c index 0c30fb631..82c3206bc 100644 --- a/src/render/wiiu/SDL_render_wiiu.c +++ b/src/render/wiiu/SDL_render_wiiu.c @@ -62,12 +62,14 @@ WIIU_CreateRenderer(SDL_Window * window, Uint32 flags) return NULL; } + // See sdl_render_wiiu.h for explanations of commented-out functions + renderer->WindowEvent = WIIU_WindowEvent; renderer->GetOutputSize = WIIU_GetOutputSize; renderer->CreateTexture = WIIU_CreateTexture; - renderer->SetTextureColorMod = WIIU_SetTextureColorMod; - renderer->SetTextureAlphaMod = WIIU_SetTextureAlphaMod; - renderer->SetTextureBlendMode = WIIU_SetTextureBlendMode; + //renderer->SetTextureColorMod = WIIU_SetTextureColorMod; + //renderer->SetTextureAlphaMod = WIIU_SetTextureAlphaMod; + //renderer->SetTextureBlendMode = WIIU_SetTextureBlendMode; renderer->UpdateTexture = WIIU_UpdateTexture; renderer->LockTexture = WIIU_LockTexture; renderer->UnlockTexture = WIIU_UnlockTexture; diff --git a/src/render/wiiu/SDL_render_wiiu.h b/src/render/wiiu/SDL_render_wiiu.h index 67e824d8f..1ed7d879c 100644 --- a/src/render/wiiu/SDL_render_wiiu.h +++ b/src/render/wiiu/SDL_render_wiiu.h @@ -48,12 +48,14 @@ static void WIIU_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event); static int WIIU_GetOutputSize(SDL_Renderer * renderer, int *w, int *h); static int WIIU_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture); -static int WIIU_SetTextureColorMod(SDL_Renderer * renderer, +// SDL changes colour/alpha/blend values internally, this is just to notify us. +// We don't care yet. TODO: could update GX2RBuffers less frequently with these? +/*static int WIIU_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture); static int WIIU_SetTextureAlphaMod(SDL_Renderer * renderer, SDL_Texture * texture); static int WIIU_SetTextureBlendMode(SDL_Renderer * renderer, - SDL_Texture * texture); + SDL_Texture * texture);*/ static int WIIU_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture, const SDL_Rect * rect, const void *pixels, int pitch);