From eaf15046b4cab4ef0c5a9ba96c2d4e2d81ae6e73 Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 6 May 2024 15:48:42 -0400 Subject: [PATCH] uwu --- CMakeLists.txt | 2 +- src/blt/gfx/renderer/postprocess.cpp | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 920cac6..ae3c6fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.25) -set(BLT_GRAPHICS_VERSION 0.13.7) +set(BLT_GRAPHICS_VERSION 0.13.8) set(BLT_GRAPHICS_TEST_VERSION 0.0.1) project(BLT_WITH_GRAPHICS VERSION ${BLT_GRAPHICS_VERSION}) diff --git a/src/blt/gfx/renderer/postprocess.cpp b/src/blt/gfx/renderer/postprocess.cpp index 093dd20..c91a8ec 100644 --- a/src/blt/gfx/renderer/postprocess.cpp +++ b/src/blt/gfx/renderer/postprocess.cpp @@ -145,20 +145,20 @@ namespace blt::gfx void pp_in_place_t::post_draw(frame_buffer_t& previous) { - //draw_buffer.blitTexture(previous, 0, 0, 0, 0, GL_NEAREST, from, to); - previous.bind(); - GLenum buf[32]; - auto buff_val = static_cast(to); - auto size = buff_val - GL_COLOR_ATTACHMENT0; - for (GLenum i = 0; i < size; i++) - buf[i] = GL_NONE; - buf[size] = buff_val; - glDrawBuffers(static_cast(size) + 1, buf); - glClear(GL_COLOR_BUFFER_BIT); - shader_pass->bind(); - glActiveTexture(GL_TEXTURE0); - draw_buffer.getTexture(frame_buffer_t::attachment_t::COLOR0).bind(); - pp_engine_t::render_quad(); + draw_buffer.blitTexture(previous, 0, 0, 0, 0, GL_NEAREST, from, to); +// previous.bind(); +// GLenum buf[32]; +// auto buff_val = static_cast(to); +// auto size = buff_val - GL_COLOR_ATTACHMENT0; +// for (GLenum i = 0; i < size; i++) +// buf[i] = GL_NONE; +// buf[size] = buff_val; +// glDrawBuffers(static_cast(size) + 1, buf); +// glClear(GL_COLOR_BUFFER_BIT); +// shader_pass->bind(); +// glActiveTexture(GL_TEXTURE0); +// draw_buffer.getTexture(frame_buffer_t::attachment_t::COLOR0).bind(); +// pp_engine_t::render_quad(); } void pp_in_place_t::draw(frame_buffer_t& previous)