OSDN Git Service

Fix sampler usage
authorJohn Bauman <jbauman@google.com>
Tue, 6 May 2014 19:32:06 +0000 (15:32 -0400)
committerNicolas Capens <capn@google.com>
Tue, 6 May 2014 19:32:06 +0000 (15:32 -0400)
Patch from Nicolas at Transgaming.

src/OpenGL ES 2.0/compiler/OutputASM.cpp

index 49a1262..b63f3ad 100644 (file)
@@ -1911,7 +1911,7 @@ namespace sh
 
                                for(int i = 0; i < sampler->totalRegisterCount(); i++)
                                {
-                                       shader->declareSampler(i);
+                                       shader->declareSampler(index + i);
                                }
                        }