diff options
author | Dudemanguy <random342@airmail.cc> | 2023-02-28 22:54:14 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-03-02 02:08:39 +0000 |
commit | cd02b5ccf6426645796b18c0692a5c4ca1f83174 (patch) | |
tree | 56b8649e4a7d2dc163780b557425f68782c9fd05 /options/options.h | |
parent | 779d4f99a74cce2089f0bf7dc5ed10c7a7ff00a3 (diff) | |
download | mpv-cd02b5ccf6426645796b18c0692a5c4ca1f83174.tar.bz2 mpv-cd02b5ccf6426645796b18c0692a5c4ca1f83174.tar.xz |
ra: assert when using params with dimensions
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.
Diffstat (limited to 'options/options.h')
0 files changed, 0 insertions, 0 deletions