summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-03-20 13:52:37 -0400
committerGitHub <noreply@github.com>2026-03-20 17:52:37 +0000
commit8726a7363eb9213235e6e23657668e0daac39a5b (patch)
tree42eeb40f6f81a9ccec1455f308e56173e9dcce4b /src/render/OpenGL.cpp
parentb940b0d2c197841b0f648598ee782dbaf9e0a89b (diff)
config: cleanup the entire config infrastructure (#13785)
Massively refactors the config infrastructure, sorely needed and will be req'd for the lua stuff
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index c2c19993..d466dc82 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -15,7 +15,7 @@
#include "../helpers/CursorShapes.hpp"
#include "../helpers/TransferFunction.hpp"
#include "../config/ConfigValue.hpp"
-#include "../config/ConfigManager.hpp"
+#include "../config/legacy/ConfigManager.hpp"
#include "../managers/PointerManager.hpp"
#include "../desktop/view/LayerSurface.hpp"
#include "../desktop/state/FocusState.hpp"
@@ -889,21 +889,21 @@ void CHyprOpenGLImpl::applyScreenShader(const std::string& path) {
if (path.empty() || path == STRVAL_EMPTY)
return;
- std::string absPath = absolutePath(path, g_pConfigManager->getMainConfigPath());
+ std::string absPath = absolutePath(path, Config::mgr()->getMainConfigPath());
std::error_code ec;
if (!std::filesystem::is_regular_file(absPath, ec)) {
if (ec)
- g_pConfigManager->addParseError("Screen shader parser: Failed to check screen shader path: " + ec.message());
+ g_pHyprError->queueError("Screen shader parser: Failed to check screen shader path: " + ec.message());
else
- g_pConfigManager->addParseError("Screen shader parser: Screen shader path is not a regular file");
+ g_pHyprError->queueError("Screen shader parser: Screen shader path is not a regular file");
return;
}
std::ifstream infile(absPath);
if (!infile.good()) {
- g_pConfigManager->addParseError("Screen shader parser: Failed to open screen shader");
+ g_pHyprError->queueError("Screen shader parser: Failed to open screen shader");
return;
}
@@ -930,9 +930,9 @@ void CHyprOpenGLImpl::applyScreenShader(const std::string& path) {
// The screen shader uses the uniform
// Since the screen shader could change every frame, damage tracking *needs* to be disabled
- g_pConfigManager->addParseError(std::format("Screen shader: Screen shader uses uniform '{}', which requires debug:damage_tracking to be switched off.\n"
- "WARNING:(Disabling damage tracking will *massively* increase GPU utilization!",
- name));
+ g_pHyprError->queueError(std::format("Screen shader: Screen shader uses uniform '{}', which requires debug:damage_tracking to be switched off.\n"
+ "WARNING:(Disabling damage tracking will *massively* increase GPU utilization!",
+ name));
};
// Allow glitch shader to use time uniform whighout damage tracking
@@ -2029,7 +2029,7 @@ void CHyprOpenGLImpl::renderTextureWithBlurInternal(SP<ITexture> tex, const CBox
scissor(nullptr);
}
-void CHyprOpenGLImpl::renderBorder(const CBox& box, const CGradientValueData& grad, SBorderRenderData data) {
+void CHyprOpenGLImpl::renderBorder(const CBox& box, const Config::CGradientValueData& grad, SBorderRenderData data) {
auto& m_renderData = g_pHyprRenderer->m_renderData;
RASSERT((box.width > 0 && box.height > 0), "Tried to render rect with width/height < 0!");
RASSERT(m_renderData.pMonitor, "Tried to render rect without begin()!");
@@ -2115,7 +2115,7 @@ void CHyprOpenGLImpl::renderBorder(const CBox& box, const CGradientValueData& gr
blend(BLEND);
}
-void CHyprOpenGLImpl::renderBorder(const CBox& box, const CGradientValueData& grad1, const CGradientValueData& grad2, float lerp, SBorderRenderData data) {
+void CHyprOpenGLImpl::renderBorder(const CBox& box, const Config::CGradientValueData& grad1, const Config::CGradientValueData& grad2, float lerp, SBorderRenderData data) {
auto& m_renderData = g_pHyprRenderer->m_renderData;
RASSERT((box.width > 0 && box.height > 0), "Tried to render rect with width/height < 0!");
RASSERT(m_renderData.pMonitor, "Tried to render rect without begin()!");