Bug 805814 - turn on packing restrictions in WebGL shaders - r=jgilbert

This commit is contained in:
Benoit Jacob 2012-12-11 16:57:30 -05:00
parent 72594565fa
commit a239d2030b

View File

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