Metal fixes

This commit is contained in:
luboslenco
2025-05-01 12:32:28 +02:00
parent 1916b6ea87
commit 62cffd93ab
10 changed files with 44 additions and 21 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ void gpu_draw(void) {
void gpu_begin() {
constant_buffer_index = 0;
iron_gpu_constant_buffer_lock(&constant_buffer, constant_buffer_index, CONSTANT_BUFFER_SIZE);
iron_gpu_constant_buffer_lock(&constant_buffer, constant_buffer_index * CONSTANT_BUFFER_SIZE, CONSTANT_BUFFER_SIZE);
framebuffer_index = (framebuffer_index + 1) % FRAMEBUFFER_COUNT;
// if (window_resized) {