Author: ArcRiley
Date: 2008-01-09 21:00:11 +0000 (Wed, 09 Jan 2008)
New Revision: 763

Modified:
   trunk/pysoy/src/textures/Print.pxi
   trunk/pysoy/src/textures/Texture.pxi
Log:
removing debugs, moving mutex unlock to _unbind function


Modified: trunk/pysoy/src/textures/Print.pxi
===================================================================
--- trunk/pysoy/src/textures/Print.pxi  2008-01-09 20:57:24 UTC (rev 762)
+++ trunk/pysoy/src/textures/Print.pxi  2008-01-09 21:00:11 UTC (rev 763)
@@ -103,7 +103,6 @@
       return
     # Clear the background
     py.PyThread_acquire_lock(self._mutex,1)
-    stdio.printf('Drawing\n')
     self._clear()
     cairo.cairo_select_font_face(self._context,
                                  self._font,
@@ -116,4 +115,3 @@
     cairo.cairo_show_text(self._context, self._text)
     self._update = 1
     py.PyThread_release_lock(self._mutex)
-    stdio.printf('Done drawing\n')

Modified: trunk/pysoy/src/textures/Texture.pxi
===================================================================
--- trunk/pysoy/src/textures/Texture.pxi        2008-01-09 20:57:24 UTC (rev 
762)
+++ trunk/pysoy/src/textures/Texture.pxi        2008-01-09 21:00:11 UTC (rev 
763)
@@ -97,7 +97,6 @@
 
 
   cdef void _bind(self) :
-    stdio.printf('binding to %d %d %d %d\n', self._chans, self._width, 
self._height, self._depth)
     py.PyThread_acquire_lock(self._mutex,1)
     if self._textureTarget == gl.GL_TEXTURE_1D :
       gl.glEnable(gl.GL_TEXTURE_1D)
@@ -142,8 +141,6 @@
     if self._scaleX :
       gl.glMatrixMode(gl.GL_TEXTURE)
       gl.glScalef(self._scaleX, self._scaleY, self._scaleZ)
-    py.PyThread_release_lock(self._mutex)
-    stdio.printf('done binding\n')
 
     #cdef int max_size
     #gl.glGetIntegerv(gl.GL_MAX_TEXTURE_SIZE, &max_size)
@@ -161,12 +158,12 @@
     if self._scaleX :
       gl.glMatrixMode(gl.GL_TEXTURE)
       gl.glLoadIdentity()
+    py.PyThread_release_lock(self._mutex)
 
 
   cdef void _resize(self, int c, int x, int y, int z) :
     cdef long int _size
     _size = c*x*y*z
-    stdio.printf('resizing to %d %d %d %d\n', c, x, y, z)
     if _size == 0 :
       self._textureTarget = 0
       if self._width != 0 :
@@ -188,7 +185,6 @@
     self._width  = x
     self._height = y
     self._depth  = z
-    stdio.printf('resize complete\n')
 
 
   cdef int _squareup(self, int _v) :

_______________________________________________
PySoy-SVN mailing list
[email protected]
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to