Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-08-25 16:34:34 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-08-25 16:34:34 +0300
commitaf9838accba7088cce78fc46966bf574b9543b7d (patch)
treec13426cbde09a0f424308f83bd40c23c65758f0f /source/blender/gpu/intern/gpu_codegen.c
parent41ae6d7829100bd86acdc8293ca61414f97de04b (diff)
OpenSubdiv: Fix/workaround shader compilation when going to GLSL mode
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r--source/blender/gpu/intern/gpu_codegen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c
index 68b9e3845f7..12292f4897c 100644
--- a/source/blender/gpu/intern/gpu_codegen.c
+++ b/source/blender/gpu/intern/gpu_codegen.c
@@ -839,6 +839,8 @@ static char *code_generate_geometry(ListBase *nodes, bool use_opensubdiv)
BLI_dynstr_append(ds, datatoc_gpu_shader_geometry_glsl);
/* Generate varying assignments. */
+ /* TODO(sergey): Disabled for now, needs revisit. */
+#if 0
for (node = nodes->first; node; node = node->next) {
for (input = node->inputs.first; input; input = input->next) {
if (input->source == GPU_SOURCE_ATTRIB && input->attribfirst) {
@@ -852,6 +854,7 @@ static char *code_generate_geometry(ListBase *nodes, bool use_opensubdiv)
}
}
}
+#endif
BLI_dynstr_append(ds, "}\n\n");
code = BLI_dynstr_get_cstring(ds);