Browse Source

Changes for get necesary sampler names for OpenGL shaders.

LuisAntonRebollo 10 years ago
parent
commit
fab2bb46c5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Engine/source/materials/customMaterialDefinition.cpp

+ 3 - 0
Engine/source/materials/customMaterialDefinition.cpp

@@ -149,8 +149,11 @@ bool CustomMaterial::onAdd()
             const char *error = (avar("CustomMaterial(%s) bind sampler[%s] and is not present on ShaderData(%s)", 
                getName(), samplerName.c_str(), mShaderDataName.c_str() ));
             Con::errorf(error);
+
+#if TORQUE_OPENGL
             GFXAssertFatal(0, error);
             continue;
+#endif
          }
          mSamplerNames[pos] = samplerName;
          mTexFilename[pos] = entry->value;