From 2178e5f94d26b6bdefa44e56d47a9257a2e73e74 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Tue, 26 Nov 2024 16:37:54 -0500 Subject: Quit on sway exit, pin deps, refactor flake Signed-off-by: Andrew Opalach --- src/context.h | 2 +- src/objects/pass.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/context.h b/src/context.h index 8866a7f..5dfcc8b 100644 --- a/src/context.h +++ b/src/context.h @@ -31,7 +31,7 @@ class Context auto create_window(s32 width, s32 height, const std::string &name, const std::string monitor) -> bool { - this->window = stl_window_create(); + this->window = stl_window_create(NULL); this->window->pointer_pos_callback = pointer_pos_callback; this->window->should_close_callback = should_close_callback; this->window->userdata = this; diff --git a/src/objects/pass.cc b/src/objects/pass.cc index afe7c8a..4d2fd0f 100644 --- a/src/objects/pass.cc +++ b/src/objects/pass.cc @@ -274,8 +274,8 @@ RenderPass::RenderPass(Engine *engine, Pass *pass) #ifdef _DEBUG_ debug("PASS (%s)", this->command == COPY ? "copy" : "draw"); debug(" object: %s (passthrough: %s, fullscreen %s)", this->object->name.c_str(), - AL_BOOLSTR(this->object->passthrough), AL_BOOLSTR(this->object->fullscreen)); - debug(" visible: %s", AL_BOOLSTR(this->object->visible)); + BOOLSTR(this->object->passthrough), BOOLSTR(this->object->fullscreen)); + debug(" visible: %s", BOOLSTR(this->object->visible)); debug(" shader: %s", this->shader->origin()->name.c_str()); debug(" target: %s", pass->target.c_str()); debug(" textures (%u):", this->shader->origin()->texture_count); @@ -304,8 +304,8 @@ RenderPass::RenderPass(Engine *engine, Pass *pass) debug(" %s %s %s", uniform_type_to_string(uniform->type).c_str(), uniform->uname.c_str(), glm::to_string(*uniform->value).c_str()); } - debug(" model: %s", AL_BOOLSTR(this->model)); - debug(" combine: %s", AL_BOOLSTR(this->combine)); + debug(" model: %s", BOOLSTR(this->model)); + debug(" combine: %s", BOOLSTR(this->combine)); #endif } -- cgit v1.2.3-101-g0448