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

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2015-11-12 23:06:40 +01:00 committed by Alexandre Julliard
parent 4354bc831f
commit e449f90b20
1 changed files with 1 additions and 1 deletions

View File

@ -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;