wined3d: Pass a wined3d_context_gl structure to shader_glsl_init_transform_feedback().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2019-06-25 02:29:26 +04:30 committed by Alexandre Julliard
parent 84f8bf2400
commit 3484871f2c
1 changed files with 3 additions and 3 deletions

View File

@ -938,11 +938,11 @@ static BOOL shader_glsl_generate_transform_feedback_varyings(struct wined3d_stri
return have_varyings_to_record; return have_varyings_to_record;
} }
static void shader_glsl_init_transform_feedback(const struct wined3d_context *context, static void shader_glsl_init_transform_feedback(const struct wined3d_context_gl *context_gl,
struct shader_glsl_priv *priv, GLuint program_id, struct wined3d_shader *shader) struct shader_glsl_priv *priv, GLuint program_id, struct wined3d_shader *shader)
{ {
const struct wined3d_stream_output_desc *so_desc = &shader->u.gs.so_desc; const struct wined3d_stream_output_desc *so_desc = &shader->u.gs.so_desc;
const struct wined3d_gl_info *gl_info = context->gl_info; const struct wined3d_gl_info *gl_info = context_gl->c.gl_info;
struct wined3d_string_buffer *buffer; struct wined3d_string_buffer *buffer;
unsigned int i, count, length; unsigned int i, count, length;
const char **varyings; const char **varyings;
@ -10342,7 +10342,7 @@ static void set_glsl_shader_program(const struct wined3d_context *context, const
GL_EXTCALL(glAttachShader(program_id, gs_id)); GL_EXTCALL(glAttachShader(program_id, gs_id));
checkGLcall("glAttachShader"); checkGLcall("glAttachShader");
shader_glsl_init_transform_feedback(context, priv, program_id, gshader); shader_glsl_init_transform_feedback(context_gl, priv, program_id, gshader);
list_add_head(&gshader->linked_programs, &entry->gs.shader_entry); list_add_head(&gshader->linked_programs, &entry->gs.shader_entry);
} }