[Yt-svn] yt: Missed a factor of four in plotting vertices

hg at spacepope.org hg at spacepope.org
Wed May 19 23:14:44 PDT 2010


hg Repository: yt
details:   yt/rev/78e6e848f306
changeset: 1697:78e6e848f306
user:      Matthew Turk <matthewturk at gmail.com>
date:
Wed May 19 23:14:40 2010 -0700
description:
Missed a factor of four in plotting vertices

diffstat:

 yt/extensions/opengl_image_viewer.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5360cff8a412 -r 78e6e848f306 yt/extensions/opengl_image_viewer.py
--- a/yt/extensions/opengl_image_viewer.py	Wed May 19 23:12:36 2010 -0700
+++ b/yt/extensions/opengl_image_viewer.py	Wed May 19 23:14:40 2010 -0700
@@ -308,7 +308,7 @@
         self.vertices.bind()
         GL.glEnableClientState(GL.GL_VERTEX_ARRAY)
         GL.glVertexPointer( 3, GL.GL_FLOAT, 0, self.vertices)
-        GL.glDrawArrays(GL.GL_QUADS, 0, 6*self.ng)
+        GL.glDrawArrays(GL.GL_QUADS, 0, 4*6*self.ng)
         
         GL.glDisableClientState(GL.GL_VERTEX_ARRAY)
         self.vertices.unbind()



More information about the yt-svn mailing list