summaryrefslogtreecommitdiffstats
path: root/video/fmt-conversion.c
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2012-12-28 14:27:03 +0100
committerRudolf Polzer <divverent@xonotic.org>2012-12-28 14:27:12 +0100
commita313af3d022e0fe1a0808f2308126e2a119ca022 (patch)
tree12cc598de35b9103eb232c30c0346047d8b02203 /video/fmt-conversion.c
parent0db55cd86ad772195733419f09c91c50b8cce0f9 (diff)
downloadmpv-a313af3d022e0fe1a0808f2308126e2a119ca022.tar.bz2
mpv-a313af3d022e0fe1a0808f2308126e2a119ca022.tar.xz
vo_sdl: some OSD optimizations
The premultiplied-alpha hack is changed: - The first stage now uses a colormod of black with an unmodified texture. This saves on applying the AND mask of 0xFF000000 to keep alpha only. - The second stage no longer uses an AND mask, but only an OR mask of 0xFF000000 to cancel out alpha. - The texture uploads are no longer done using SDL_LockTexture, SDL_ConvertPixels, SDL_UnlockTexture when the mpv pixel format matches the OSD's pixel format. Instead, SDL_UploadTexture is used, which saves a copy when using the "opengl" renderer.
Diffstat (limited to 'video/fmt-conversion.c')
0 files changed, 0 insertions, 0 deletions