wiiu/render: Remove optional SetTextureMod functions

This commit is contained in:
Ash 2018-10-16 15:33:37 +11:00 committed by Ash Logan
parent e5fae70caf
commit a01adf4e00
2 changed files with 9 additions and 5 deletions

View File

@ -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;

View File

@ -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);