aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtOpenGL
diff options
context:
space:
mode:
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>