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:
authorClément Foucault <foucault.clem@gmail.com>2018-09-20 18:43:11 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-09-20 18:53:47 +0300
commitb8d55a570e19adb877570b06fc85ca65802a1d0b (patch)
tree28c24119830cbc153cf78b4f0ee8ac28a2b21d8d /source/blender
parent667add5fc5b743a324b508e3c5cedfde1df218c0 (diff)
GPUCodegen: Remove unnecessary GLEW_VERSION_3_0 checks
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/gpu/intern/gpu_codegen.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c
index 2cc83294949..69801f64ab1 100644
--- a/source/blender/gpu/intern/gpu_codegen.c
+++ b/source/blender/gpu/intern/gpu_codegen.c
@@ -614,8 +614,7 @@ static int codegen_process_uniforms_functions(GPUMaterial *material, DynStr *ds,
}
else {
BLI_dynstr_appendf(
- ds, "%s %s %s;\n",
- GLEW_VERSION_3_0 ? "in" : "varying",
+ ds, "in %s %s;\n",
GPU_DATATYPE_STR[input->type], name);
}
}
@@ -639,8 +638,7 @@ static int codegen_process_uniforms_functions(GPUMaterial *material, DynStr *ds,
}
else if (input->source == GPU_SOURCE_ATTRIB && input->attribfirst) {
BLI_dynstr_appendf(
- ds, "%s %s var%d;\n",
- GLEW_VERSION_3_0 ? "in" : "varying",
+ ds, "in %s var%d;\n",
GPU_DATATYPE_STR[input->type], input->attribid);
}
}