add support for texture_rect texture type in shaders, add new form, clear up a few things in the API

This commit is contained in:
jp9000
2013-12-20 11:56:01 -07:00
parent eb8c2923f6
commit f41bb4b7e9
8 changed files with 532 additions and 10 deletions

View File

@@ -75,6 +75,8 @@ static bool gl_write_type_n(struct gl_shader_parser *glsp,
dstr_cat(&glsp->gl_string, "sampler3D");
else if (cmp_type(type, len, "texture_cube", 12) == 0)
dstr_cat(&glsp->gl_string, "samplerCube");
else if (cmp_type(type, len, "texture_rect", 12) == 0)
dstr_cat(&glsp->gl_string, "sampler2DRect");
else
return false;