From 3737076011e7dbafe9310726b6fa228cf244ef1a Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 14 Aug 2012 05:54:48 +0200 Subject: disable textures so the boundary lines will always render --- layoutgl/widget.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- cgit v1.2.3