[Bf-blender-cvs] [b8d55a570e1] blender2.8: GPUCodegen: Remove unnecessary GLEW_VERSION_3_0 checks
Clément Foucault
noreply at git.blender.org
Thu Sep 20 17:53:52 CEST 2018
Commit: b8d55a570e19adb877570b06fc85ca65802a1d0b
Author: Clément Foucault
Date: Thu Sep 20 17:43:11 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb8d55a570e19adb877570b06fc85ca65802a1d0b
GPUCodegen: Remove unnecessary GLEW_VERSION_3_0 checks
===================================================================
M source/blender/gpu/intern/gpu_codegen.c
===================================================================
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);
}
}
More information about the Bf-blender-cvs
mailing list