aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtOpenGL
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-28 15:09:16 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-28 15:09:16 -0200
commitec0d05f8589236865906faa30441bd04d56b4409 (patch)
treefa4b49fb1a7236be2a8b83302db65322079a6b33 /PySide/QtOpenGL
parent31a4f12f4cb358fa05726379c2a40106563e47ea (diff)
Fix crashes caused by the newer changes on shiboken generator.
Diffstat (limited to 'PySide/QtOpenGL')
-rw-r--r--PySide/QtOpenGL/typesystem_opengl.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/PySide/QtOpenGL/typesystem_opengl.xml b/PySide/QtOpenGL/typesystem_opengl.xml
index b94e8af32..f58d84940 100644
--- a/PySide/QtOpenGL/typesystem_opengl.xml
+++ b/PySide/QtOpenGL/typesystem_opengl.xml
@@ -119,8 +119,8 @@
<inject-code class="target" position="beginning">
int size = %2;
if (size &lt; 0)
- size = %1->size();
- %CPPSELF.allocate((const void*) %1->data(), size);
+ size = %1.size();
+ %CPPSELF.allocate((const void*) %1.data(), size);
</inject-code>
</modify-function>
<modify-function signature="map(QGLBuffer::Access)">
@@ -159,8 +159,8 @@
<inject-code class="target" position="beginning">
int size = %3;
if (size &lt; 0)
- size = %2->size();
- %CPPSELF.write(%1, (const void*) %2->data(), size);
+ size = %2.size();
+ %CPPSELF.write(%1, (const void*) %2.data(), size);
</inject-code>
</modify-function>
</object-type>