summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpu/command_buffer/service/shader_translator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/shader_translator.cc b/gpu/command_buffer/service/shader_translator.cc
index f5c08a1..a8efbaf 100644
--- a/gpu/command_buffer/service/shader_translator.cc
+++ b/gpu/command_buffer/service/shader_translator.cc
@@ -148,7 +148,7 @@ bool ShaderTranslator::Translate(const char* shader) {
bool success = false;
int compile_options =
SH_OBJECT_CODE | SH_ATTRIBUTES_UNIFORMS |
- SH_MAP_LONG_VARIABLE_NAMES;
+ SH_MAP_LONG_VARIABLE_NAMES | SH_ENFORCE_PACKING_RESTRICTIONS;
#if !defined(OS_WIN) && !(defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL))
// Cannot reliably clamp an array index in HLSL.