From bdd44564c9c1e22396fc8e30b6b6d831add02b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Wed, 7 Nov 2018 22:16:03 +0100 Subject: GPU: Cleanups: Remove GPUMatType, Vectorize / MADD some operations --- source/blender/gpu/intern/gpu_material.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source/blender/gpu/intern/gpu_material.c') diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index fa267102088..1002e6f483c 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -70,9 +70,6 @@ struct GPUMaterial { Scene *scene; /* DEPRECATED was only useful for lamps */ Material *ma; - /* material for mesh surface, worlds or something else. - * some code generation is done differently depending on the use case */ - int type; /* DEPRECATED */ GPUMaterialStatus status; const void *engine_type; /* attached engine type */ @@ -228,11 +225,6 @@ Scene *GPU_material_scene(GPUMaterial *material) return material->scene; } -GPUMatType GPU_Material_get_type(GPUMaterial *material) -{ - return material->type; -} - GPUPass *GPU_material_get_pass(GPUMaterial *material) { return material->pass; -- cgit v1.2.3