Skip to content

Commit eea0a7a

Browse files
committed
rm VERTEX_MODEL;
It's unused.
1 parent 3e2c2c1 commit eea0a7a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/modules/graphics/graphics.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ typedef enum {
247247
VERTEX_SHAPE,
248248
VERTEX_POINT,
249249
VERTEX_GLYPH,
250-
VERTEX_MODEL,
251250
VERTEX_EMPTY,
252251
VERTEX_FORMAT_COUNT
253252
} VertexFormat;
@@ -847,17 +846,6 @@ bool lovrGraphicsInit(GraphicsConfig* config) {
847846
.attributes[4] = { 1, 14, 0, GPU_TYPE_F32x4 }
848847
};
849848

850-
state.vertexFormats[VERTEX_MODEL] = (gpu_vertex_format) {
851-
.bufferCount = 2,
852-
.attributeCount = 5,
853-
.bufferStrides[0] = sizeof(ModelVertex),
854-
.attributes[0] = { 0, 10, offsetof(ModelVertex, position), GPU_TYPE_F32x3 },
855-
.attributes[1] = { 0, 11, offsetof(ModelVertex, normal), GPU_TYPE_SN10x3 },
856-
.attributes[2] = { 0, 12, offsetof(ModelVertex, uv), GPU_TYPE_F32x2 },
857-
.attributes[3] = { 0, 13, offsetof(ModelVertex, color), GPU_TYPE_UN8x4 },
858-
.attributes[4] = { 0, 14, offsetof(ModelVertex, tangent), GPU_TYPE_SN10x3 }
859-
};
860-
861849
state.vertexFormats[VERTEX_EMPTY] = (gpu_vertex_format) {
862850
.bufferCount = 2,
863851
.attributeCount = 5,

0 commit comments

Comments
 (0)