From 8fd52222939b9e58da8511d9000bb1cf12e4de71 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Mon, 15 Jul 2024 18:33:37 -0400 Subject: [PATCH] forgot the clear --- CMakeLists.txt | 2 +- src/blt/gfx/renderer/batch_2d_renderer.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a222b43..0b2a98a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.25) -set(BLT_GRAPHICS_VERSION 0.13.24) +set(BLT_GRAPHICS_VERSION 0.13.25) set(BLT_GRAPHICS_TEST_VERSION 0.0.1) project(BLT_WITH_GRAPHICS VERSION ${BLT_GRAPHICS_VERSION}) diff --git a/src/blt/gfx/renderer/batch_2d_renderer.cpp b/src/blt/gfx/renderer/batch_2d_renderer.cpp index 1530c4a..2d414b1 100644 --- a/src/blt/gfx/renderer/batch_2d_renderer.cpp +++ b/src/blt/gfx/renderer/batch_2d_renderer.cpp @@ -226,9 +226,9 @@ namespace blt::gfx const f32 denominator = 1.0f / (draw.z_max - draw.z_min); glClear(GL_STENCIL_BUFFER_BIT); - draw_points(false, false, denominator); - draw_rectangles(false, false, denominator); - draw_lines(false, false, denominator); + draw_points(false, true, denominator); + draw_rectangles(false, true, denominator); + draw_lines(false, true, denominator); post_reset(); }