From 4d198fe4f5cbe9e022776bdbd0bd8ec8094c8953 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Thu, 18 Jul 2024 12:03:15 +1000 Subject: draw pbr container --- src/ral/backends/opengl/backend_opengl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ral/backends/opengl/backend_opengl.c') diff --git a/src/ral/backends/opengl/backend_opengl.c b/src/ral/backends/opengl/backend_opengl.c index ecf0e80..f4786b9 100644 --- a/src/ral/backends/opengl/backend_opengl.c +++ b/src/ral/backends/opengl/backend_opengl.c @@ -126,7 +126,7 @@ GPU_Pipeline* GPU_GraphicsPipeline_Create(GraphicsPipelineDesc description, assert(binding_id < MAX_PIPELINE_UNIFORM_BUFFERS); ShaderBinding binding = sdl.bindings[binding_j]; // Do I want Buffer vs Bytes? - if (binding.kind == BINDING_BUFFER) { + if (binding.kind == BINDING_BYTES) { static u32 s_binding_point = 0; BufferHandle ubo_handle = GPU_BufferCreate(binding.data.bytes.size, BUFFER_UNIFORM, BUFFER_FLAG_GPU, NULL); // no data right now @@ -317,7 +317,7 @@ PUB void GPU_EncodeBindShaderData(GPU_CmdEncoder* encoder, u32 group, ShaderData } } if (!found) { - ERROR("Couldnt find uniform buffer object!!"); + ERROR("Couldnt find uniform buffer object for %s!!", binding.label); } i32 blockIndex = glGetUniformBlockIndex(encoder->pipeline->shader_id, binding.label); -- cgit v1.2.3-70-g09d2