Skip to content

Commit 285a674

Browse files
committed
[OpenGL] Set the buffer type
1 parent cb2c453 commit 285a674

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backends/gpu/opengl/sources/device.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ void kore_opengl_device_create_buffer(kore_gpu_device *device, const kore_gpu_bu
259259
buffer->opengl.uniform_buffer = next_uniform_buffer_index;
260260
glBindBufferBase(GL_UNIFORM_BUFFER, buffer->opengl.uniform_buffer, buffer->opengl.buffer);
261261
next_uniform_buffer_index += 1;
262+
buffer->opengl.buffer_type = GL_UNIFORM_BUFFER;
262263
}
263264
else {
264265
assert(false);

0 commit comments

Comments
 (0)