From 4ef37f16257b42512ec610cc5def338707308747 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 6 Jun 2023 16:58:40 +0200 Subject: BarChart, Wayland. * Makefile: Added some Wayland stuff to cflags/libs in pkg-config * barchart: Rendering works, no interactivity * main.cpp: Reposition some components for a more compact view * manifest.scm: glfw-wayland: Added GLFW variant with Wayland * scatterplot.cpp and voronoisplat.cpp: Cleanup --- scatterplot.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scatterplot.cpp') diff --git a/scatterplot.cpp b/scatterplot.cpp index 64859b3..d27b295 100644 --- a/scatterplot.cpp +++ b/scatterplot.cpp @@ -57,7 +57,6 @@ vec3 getRGB(float value) { void main() { vs_out.color = vec4(mix(vec3(1.0), getRGB(value), colormask), 1.0); - // vs_out.color = vec4(1.0); gl_Position = transform * vec4(pos.xy, 0.0, 1.0); } )EOF"; @@ -404,6 +403,7 @@ void Scatterplot::draw() if (!m_redraw) { return; } + m_redraw = false; int originalFBO; glGetIntegerv(GL_FRAMEBUFFER_BINDING, &originalFBO); @@ -464,7 +464,6 @@ void Scatterplot::draw() */ glBindFramebuffer(GL_FRAMEBUFFER, originalFBO); - m_redraw = false; } /* -- cgit v1.2.3