[PS2] incorrect blend mode processing
Author: onesixromcomCreated Sep 29, 2026Updated Sep 29, 2026
There is an issue with blend textures on PS2.
here's the example of current flow (screenshots from emulator, but it's the same on the real device):
1 - default texture no blend
texture_non_blend = SDL_CreateTextureFromSurface(renderer, surface);
SDL_SetTextureBlendMode(texture_non_blend, SDL_BLENDMODE_NONE);2- texture with blend enabled
texture_blend = SDL_CreateTextureFromSurface(renderer, surface);
SDL_SetTextureBlendMode(texture_blend, SDL_BLENDMODE_BLEND); 3- is the rectangle with opacity.
SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND);
SDL_SetRenderDrawColor(renderer, 0, 0, 127, 200);
SDL_RenderFillRect(renderer, &fill_rect);
SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_NONE);also yo ucan notice texture overlap colors issue which related to incorrect blend value too. the issue is that PS2 alpha level is 0x80 max.
how the fix should look like: both textures should rendered the same, no overlap artifacts and rectangle drawn with correct opacity.
Source: libsdl-org/SDL