Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Hugoam's avatar
Hugoam
Honored Guest
4 years ago

WebGL glUniform1iv driver bug when setting sampler texture units

Hello,

I'd like to report a bug to the Oculus dev team, although it's not exactly clear where I can open an issue and track progress on this issue. The issue arises when setting samplers texture units using `glUniform1iv` instead of the more common `glUniform1i`.
I adapted a WebGL sample from the samples repository to reproduce the issue reliably on Oculus Quest2, here is the repro:
https://github.com/hugoam/WebGL2Samples/blob/oculus-gluniform1iv-sampler-bug/samples/sampler_object.html

Specifically those lines:

 

                gl.uniform1iv(uniformDiffuse0Location, new Int32Array([0]));
                gl.uniform1iv(uniformDiffuse1Location, new Int32Array([1]));

                gl.uniform1iv(uniformUDiffuse0Location, new Int32Array([2]));
                gl.uniform1iv(uniformUDiffuse1Location, new Int32Array([3]));

 

 
Any advice on where I can forward this issue to the proper authorities would be appreciated 🙂

No RepliesBe the first to reply