From: David Gow <david@ingeniumdigital.com>
Date: Thu, 5 Jun 2014 15:22:30 +0000 (+0800)
Subject: Work around a bug in the Intel driver
X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=57c3c69cbc7d9b3724874fd83cd001984ac21b6a;p=ipdf%2Fcode.git

Work around a bug in the Intel driver

Looks like we found a new bug in the intel driver!
https://bugs.freedesktop.org/show_bug.cgi?id=79685
---

diff --git a/bin/ipdf b/bin/ipdf
index 7cd3838..bb1314c 100755
Binary files a/bin/ipdf and b/bin/ipdf differ
diff --git a/src/view.cpp b/src/view.cpp
index ada42ee..a92da9b 100644
--- a/src/view.cpp
+++ b/src/view.cpp
@@ -253,6 +253,11 @@ void View::Render(int width, int height)
 	glEnableVertexAttribArray(0);
 	glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, 0);
 
+	// Filled Circles
+	m_circle_filled_shader.Use();
+	m_circle_ibo.Bind();
+	glDrawElements(GL_LINES, m_rendered_circle*2, GL_UNSIGNED_INT, 0);
+
 	// Filled Rectangles
 	m_rect_filled_shader.Use();
 	m_filled_ibo.Bind();
@@ -263,10 +268,6 @@ void View::Render(int width, int height)
 	m_outline_ibo.Bind();
 	glDrawElements(GL_LINES, m_rendered_outline*2, GL_UNSIGNED_INT, 0);
 
-	// Filled Circles
-	m_circle_filled_shader.Use();
-	m_circle_ibo.Bind();
-	glDrawElements(GL_LINES, m_rendered_circle*2, GL_UNSIGNED_INT, 0);
 	glDisableVertexAttribArray(0);
 	if (m_colour.a < 1.0f)
 	{