From 4b5695ce26a8f821dfac987e8e11a6ba5eeff610 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:17:48 +1000 Subject: start working on a immediate mode drawing API --- src/renderer/backends/opengl/backend_opengl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/renderer/backends') diff --git a/src/renderer/backends/opengl/backend_opengl.c b/src/renderer/backends/opengl/backend_opengl.c index d9859b2..18cd7ee 100644 --- a/src/renderer/backends/opengl/backend_opengl.c +++ b/src/renderer/backends/opengl/backend_opengl.c @@ -207,16 +207,11 @@ void encode_bind_shader_data(gpu_cmd_encoder* encoder, u32 group, shader_data* d glBindBuffer(GL_UNIFORM_BUFFER, ubo_buf->id.ubo); glBindBufferBase(GL_UNIFORM_BUFFER, ubo_buf->ubo_binding_point, ubo_buf->id.ubo); - if (i == 2) { - // pbr_params_light_uniforms* u = binding.data.bytes.data; - // vec4* v = &u->viewPos; - } glBufferSubData(GL_UNIFORM_BUFFER, 0, ubo_buf->size, binding.data.bytes.data); } else if (binding.type == SHADER_BINDING_TEXTURE) { gpu_texture* tex = TEXTURE_GET(binding.data.texture.handle); - glActiveTexture(GL_TEXTURE0); - // glActiveTexture(GL_TEXTURE0 + i); + glActiveTexture(GL_TEXTURE0 + i); glBindTexture(GL_TEXTURE_2D, tex->id); } } -- cgit v1.2.3-70-g09d2