diff options
author | wm4 <wm4@nowhere> | 2019-12-07 14:16:30 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-07 14:16:30 +0100 |
commit | d90d5ee1a0914239ee3048fe567fed14adbe1127 (patch) | |
tree | 226d42bbf47b16b6b25dfdb4be4e1454790f80f6 /waftools/detections | |
parent | 16b9c4c952168f2fd16dc9511d06ee3ea638a1b6 (diff) | |
download | mpv-d90d5ee1a0914239ee3048fe567fed14adbe1127.tar.bz2 mpv-d90d5ee1a0914239ee3048fe567fed14adbe1127.tar.xz |
vo_gpu: hwdec_vaapi_gl: use gl_check_extension() instead of strstr()
In theory, using strstr() to search for extensions is a bad idea,
because some extension names might be prefixes for other names, so you
could get false positives. gl_check_extension() avoids this case.
It's not clear whether this is really needed; maybe not. Surely the EGL
committee is aware of these practices (many GL clients do this, which is
why it's widely considered bad practice), and would avoid defining new
extension names which contain existing names as sub-strings, but
whatever.
Diffstat (limited to 'waftools/detections')
0 files changed, 0 insertions, 0 deletions