shl: shader: add "len" parameter to shader sources
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 15 Mar 2013 13:52:05 +0000 (14:52 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 3 Nov 2013 11:12:29 +0000 (12:12 +0100)
commit0a098393c2fe7e40a02b44481194534ad2572d70
treea913ff1e50aaf2ef2ac4aed705cc57bc6f4c355d
parent924a732e7cf26c571f29ff97ba7e8089c7db54c0
shl: shader: add "len" parameter to shader sources

Shader sources may not be 0 terminated if we mmap() them. Hence, we need
to pass the length to the shader compiler. As glShaderSource() allows this
<0 as zero-terminated strings, we can simply add a parameter for the
shader length.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/shl_gl.h
src/shl_gl_shader.c
src/text_gltex.c
src/uterm_drm3d_render.c