mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
glsl: Set up generated builtin functions handling for GLSL 1.40.
Otherwise, when we go to use ir_reader on the generated code, we won't have the types present. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
3645b77b71
commit
e06ab8c363
1 changed files with 3 additions and 3 deletions
|
|
@ -162,14 +162,14 @@ read_builtins(GLenum target, const char *protos, const char **functions, unsigne
|
|||
{
|
||||
struct gl_context fakeCtx;
|
||||
fakeCtx.API = API_OPENGL;
|
||||
fakeCtx.Const.GLSLVersion = 130;
|
||||
fakeCtx.Const.GLSLVersion = 140;
|
||||
fakeCtx.Extensions.ARB_ES2_compatibility = true;
|
||||
gl_shader *sh = _mesa_new_shader(NULL, 0, target);
|
||||
struct _mesa_glsl_parse_state *st =
|
||||
new(sh) _mesa_glsl_parse_state(&fakeCtx, target, sh);
|
||||
|
||||
st->language_version = 130;
|
||||
st->symbols->language_version = 130;
|
||||
st->language_version = 140;
|
||||
st->symbols->language_version = 140;
|
||||
st->ARB_texture_rectangle_enable = true;
|
||||
st->EXT_texture_array_enable = true;
|
||||
st->OES_EGL_image_external_enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue