diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-26 19:33:06 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-26 19:33:06 +0200 |
commit | 8898bebd8dcb4361b35dde37bdf424d09b498d60 (patch) | |
tree | b934672158ceda6ed42e0c7e63a5bc57318213a4 /editor/draw.cpp | |
parent | eb5097b993286ffe44214ad493db75e1749c8ec9 (diff) |
simplify argv handling
Diffstat (limited to 'editor/draw.cpp')
-rw-r--r-- | editor/draw.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp index c0ee7d1a..0c356268 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -12,7 +12,6 @@ void app::draw_wireframe_quad(global_coords pos) const auto pt = pos.to_signed(); auto& shader = M->shader(); - //if (const auto& [c, tile] = _world[pos]; tile.ground_image) { const Vector3 center{pt[0]*TILE_SIZE[0], pt[1]*TILE_SIZE[1], 0}; shader.set_tint({1, 0, 0, 1}); @@ -46,13 +45,7 @@ void app::draw_msaa() void app::draw() { - const bool debug = M->settings().gpu_debug >= fm_gpu_debug::on; - if (debug) - GL::DebugOutput::setEnabled(GL::DebugOutput::Source::Api, GL::DebugOutput::Type::Other, {131185}, false); // nvidia krap render_menu(); - if (debug) - GL::DebugOutput::setEnabled(GL::DebugOutput::Source::Api, GL::DebugOutput::Type::Other, {131185}, true); // nvidia krap } } // namespace floormat - |