mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 805814 - turn on packing restrictions in WebGL shaders - r=jgilbert
This commit is contained in:
parent
72594565fa
commit
a239d2030b
@ -4192,7 +4192,8 @@ WebGLContext::CompileShader(WebGLShader *shader)
|
||||
targetShaderSourceLanguage,
|
||||
&resources);
|
||||
|
||||
int compileOptions = SH_ATTRIBUTES_UNIFORMS;
|
||||
int compileOptions = SH_ATTRIBUTES_UNIFORMS |
|
||||
SH_ENFORCE_PACKING_RESTRICTIONS;
|
||||
if (useShaderSourceTranslation) {
|
||||
compileOptions |= SH_OBJECT_CODE
|
||||
| SH_MAP_LONG_VARIABLE_NAMES;
|
||||
|
Loading…
Reference in New Issue
Block a user