Skip to content
Snippets Groups Projects
Commit ffd4f666 authored by Niklas Haas's avatar Niklas Haas
Browse files

shaders: revise sh_lut method logic

This is required to support GLSL ES 1.0 and GLSL 110, which forbid the
use of literal arrays in shaders. Since SH_LUT_LITERAL is now no longer
a safe fallback, we instead always fallback to SH_LUT_UNIFORM.

This is technically an API break, since in the past, the naked pl_shader
API would always generate literal shaders, but now they may have arrays
attached as uniforms - to prevent this, users can still set small LUT
sizes (which is what e.g. VLC does anyway)
parent 44a80e80
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment