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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user