summaryrefslogtreecommitdiff
path: root/layoutgl/widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layoutgl/widget.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/layoutgl/widget.cpp b/layoutgl/widget.cpp
index 209b7c9..44a9a45 100644
--- a/layoutgl/widget.cpp
+++ b/layoutgl/widget.cpp
@@ -50,6 +50,14 @@ void LGLWidget::paintGL() {
renderPane(m_layout->rootPane);
+ // now, debugging/editing aids
+ // first off reset the textures
+ for (int i = 0; i < 8; i++) {
+ glActiveTexture(GL_TEXTURE0+i);
+ glDisable(GL_TEXTURE_2D);
+ }
+ glActiveTexture(GL_TEXTURE0);
+
glColor3ub(255, 0, 0);
float halfW = m_layout->width / 2.0f;
float halfH = m_layout->height / 2.0f;