mirror of https://github.com/mpv-player/mpv
cd02b5ccf6
This came up in #9828. According to the header comments, creating a 1D ra_tex requires height and depth to be set to 1. For a 2D texture, it requires depth be set to 1. There were a couple of spots in mpv's code where this wasn't being followed. Although there was no known bug from this, the rest of the code works like this so it was a good idea to go ahead and sync it up. As a followup, let's just add some simple asserts to ra.c to enforce this so it doesn't go unnoticed in the future. |
||
---|---|---|
.. | ||
context.c | ||
context.h | ||
d3d11_helpers.c | ||
d3d11_helpers.h | ||
error_diffusion.c | ||
error_diffusion.h | ||
hwdec.c | ||
hwdec.h | ||
lcms.c | ||
lcms.h | ||
libmpv_gpu.c | ||
libmpv_gpu.h | ||
osd.c | ||
osd.h | ||
ra.c | ||
ra.h | ||
shader_cache.c | ||
shader_cache.h | ||
spirv.c | ||
spirv.h | ||
spirv_shaderc.c | ||
user_shaders.c | ||
user_shaders.h | ||
utils.c | ||
utils.h | ||
video.c | ||
video.h | ||
video_shaders.c | ||
video_shaders.h |