Commit 86af42a4 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Pass a gl_info pointer to select_fragment_implementation().

parent f65a1ed2
......@@ -2138,9 +2138,8 @@ static enum wined3d_pci_device wined3d_guess_card(const struct wined3d_gl_info *
return CARD_NVIDIA_RIVA_128;
}
static const struct fragment_pipeline *select_fragment_implementation(struct wined3d_adapter *adapter)
static const struct fragment_pipeline *select_fragment_implementation(const struct wined3d_gl_info *gl_info)
{
const struct wined3d_gl_info *gl_info = &adapter->gl_info;
int vs_selected_mode, ps_selected_mode;
select_shader_mode(gl_info, &ps_selected_mode, &vs_selected_mode);
......@@ -2599,7 +2598,7 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter)
LEAVE_GL();
adapter->fragment_pipe = select_fragment_implementation(adapter);
adapter->fragment_pipe = select_fragment_implementation(gl_info);
adapter->shader_backend = select_shader_backend(adapter);
adapter->blitter = select_blit_implementation(adapter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment