diff options
author | Treeki <treeki@gmail.com> | 2012-08-14 05:54:48 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-08-14 05:54:48 +0200 |
commit | 3737076011e7dbafe9310726b6fa228cf244ef1a (patch) | |
tree | 6d8487a6ce6f40b3ff1570f74b2dc0586045e3d1 /layoutgl | |
parent | a2f7c5a2b6e1182bdf40c7c51b9af8695b4da302 (diff) | |
download | LayoutStudio-3737076011e7dbafe9310726b6fa228cf244ef1a.tar.gz LayoutStudio-3737076011e7dbafe9310726b6fa228cf244ef1a.zip |
disable textures so the boundary lines will always render
Diffstat (limited to 'layoutgl')
-rw-r--r-- | layoutgl/widget.cpp | 8 |
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; |