https://bugs.winehq.org/show_bug.cgi?id=41213
--- Comment #20 from Jason Wood sandain@hotmail.com --- You are right, 3f3b3e1772b36868caf7ee3bdba5de04b00ae9c6 does not affect this bug, my patch is still needed. I just noticed that your patch was touching MAX_FRAGMENT_SAMPLERS and gl_info->limits.fragment_samplers which is where my limited understanding places the problem.