Allow texture to be NULL.
Build Dusk / run-tests (push) Failing after 14s
Build Dusk / build-linux (push) Failing after 20s
Build Dusk / build-psp (push) Failing after 16s
Build Dusk / build-gamecube (push) Failing after 18s
Build Dusk / build-wii (push) Failing after 19s

This commit is contained in:
2026-03-27 13:46:18 -05:00
parent 933949cc19
commit d91808487f
5 changed files with 23 additions and 29 deletions
+5 -3
View File
@@ -141,13 +141,13 @@ errorret_t meshDrawGL(
MESH_VERTEX_UV_SIZE,
GL_FLOAT,
stride,
(const GLvoid*)&mesh->vertices[offset].uv
(const GLvoid*)&mesh->vertices[offset].uv[0]
);
glVertexPointer(
MESH_VERTEX_POS_SIZE,
GL_FLOAT,
stride,
(const GLvoid*)&mesh->vertices[offset].pos
(const GLvoid*)&mesh->vertices[offset].pos[0]
);
// Shader may have model matrix here
@@ -155,7 +155,8 @@ errorret_t meshDrawGL(
errorChain(shaderLegacyMatrixUpdate());
#endif
glDrawArrays(mesh->primitiveType, offset, count);
// glDrawArrays(mesh->primitiveType, offset, count);
glDrawArrays(mesh->primitiveType, 0, count);
errorChain(errorGLCheck());
#else
// Modern VAO/VBO rendering
@@ -183,5 +184,6 @@ errorret_t meshDisposeGL(meshgl_t *mesh) {
glDeleteVertexArrays(1, &mesh->vaoId);
errorChain(errorGLCheck());
#endif
errorOk();
}