Skip to content

Commit

Permalink
Make OpenGL drawing work
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Mar 1, 2025
1 parent 40d3fae commit 2ebf0b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backends/gpu/opengl/sources/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ void kore_opengl_device_execute_command_list(kore_gpu_device *device, kore_gpu_c

glBindBuffer(data->buffer->buffer_type, data->buffer->buffer);

// TODO
glEnableVertexAttribArray(0);
kore_opengl_check_errors();

glVertexAttribPointer(0, 3, GL_FLOAT, false, 0, (void *)(int64_t)0);
kore_opengl_check_errors();

break;
}
case COMMAND_DRAW_INDEXED: {
Expand Down

0 comments on commit 2ebf0b1

Please sign in to comment.