uwu
parent
6fb5d48ba9
commit
eaf15046b4
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.25)
|
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)
|
set(BLT_GRAPHICS_TEST_VERSION 0.0.1)
|
||||||
|
|
||||||
project(BLT_WITH_GRAPHICS VERSION ${BLT_GRAPHICS_VERSION})
|
project(BLT_WITH_GRAPHICS VERSION ${BLT_GRAPHICS_VERSION})
|
||||||
|
|
|
@ -145,20 +145,20 @@ namespace blt::gfx
|
||||||
|
|
||||||
void pp_in_place_t::post_draw(frame_buffer_t& previous)
|
void pp_in_place_t::post_draw(frame_buffer_t& previous)
|
||||||
{
|
{
|
||||||
//draw_buffer.blitTexture(previous, 0, 0, 0, 0, GL_NEAREST, from, to);
|
draw_buffer.blitTexture(previous, 0, 0, 0, 0, GL_NEAREST, from, to);
|
||||||
previous.bind();
|
// previous.bind();
|
||||||
GLenum buf[32];
|
// GLenum buf[32];
|
||||||
auto buff_val = static_cast<GLenum>(to);
|
// auto buff_val = static_cast<GLenum>(to);
|
||||||
auto size = buff_val - GL_COLOR_ATTACHMENT0;
|
// auto size = buff_val - GL_COLOR_ATTACHMENT0;
|
||||||
for (GLenum i = 0; i < size; i++)
|
// for (GLenum i = 0; i < size; i++)
|
||||||
buf[i] = GL_NONE;
|
// buf[i] = GL_NONE;
|
||||||
buf[size] = buff_val;
|
// buf[size] = buff_val;
|
||||||
glDrawBuffers(static_cast<int>(size) + 1, buf);
|
// glDrawBuffers(static_cast<int>(size) + 1, buf);
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
// glClear(GL_COLOR_BUFFER_BIT);
|
||||||
shader_pass->bind();
|
// shader_pass->bind();
|
||||||
glActiveTexture(GL_TEXTURE0);
|
// glActiveTexture(GL_TEXTURE0);
|
||||||
draw_buffer.getTexture(frame_buffer_t::attachment_t::COLOR0).bind();
|
// draw_buffer.getTexture(frame_buffer_t::attachment_t::COLOR0).bind();
|
||||||
pp_engine_t::render_quad();
|
// pp_engine_t::render_quad();
|
||||||
}
|
}
|
||||||
|
|
||||||
void pp_in_place_t::draw(frame_buffer_t& previous)
|
void pp_in_place_t::draw(frame_buffer_t& previous)
|
||||||
|
|
Loading…
Reference in New Issue