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:
Diffstat (limited to 'source/blender/gpu/intern/gpu_vertex_format.cc')
-rw-r--r--source/blender/gpu/intern/gpu_vertex_format.cc25
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/gpu/intern/gpu_vertex_format.cc b/source/blender/gpu/intern/gpu_vertex_format.cc
index ed317b3a0df..220c48457bc 100644
--- a/source/blender/gpu/intern/gpu_vertex_format.cc
+++ b/source/blender/gpu/intern/gpu_vertex_format.cc
@@ -64,31 +64,6 @@ void GPU_vertformat_copy(GPUVertFormat *dest, const GPUVertFormat *src)
memcpy(dest, src, sizeof(GPUVertFormat));
}
-GLenum convert_comp_type_to_gl(GPUVertCompType type)
-{
- switch (type) {
- case GPU_COMP_I8:
- return GL_BYTE;
- case GPU_COMP_U8:
- return GL_UNSIGNED_BYTE;
- case GPU_COMP_I16:
- return GL_SHORT;
- case GPU_COMP_U16:
- return GL_UNSIGNED_SHORT;
- case GPU_COMP_I32:
- return GL_INT;
- case GPU_COMP_U32:
- return GL_UNSIGNED_INT;
- case GPU_COMP_F32:
- return GL_FLOAT;
- case GPU_COMP_I10:
- return GL_INT_2_10_10_10_REV;
- default:
- BLI_assert(0);
- return GL_FLOAT;
- }
-}
-
static uint comp_sz(GPUVertCompType type)
{
#if TRUST_NO_ONE