Commit e449f90b authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Set default texture units mapping for vertex shader samplers when possible.

parent 4354bc83
......@@ -1509,7 +1509,7 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
/* Initialize the texture unit mapping to a 1:1 mapping */
for (s = 0; s < MAX_COMBINED_SAMPLERS; ++s)
{
if (s < gl_info->limits.fragment_samplers)
if (s < gl_info->limits.combined_samplers)
{
ret->tex_unit_map[s] = s;
ret->rev_tex_unit_map[s] = s;
......
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