|
|
2010-03-23
, 13:12
|
|
Posts: 2 |
Thanked: 1 time |
Joined on Mar 2010
|
#2
|
| The Following User Says Thank You to mstorsjo For This Useful Post: | ||
I'm trying to draw things using OpenGL ES, within Qt, by uploading data to a texture and drawing this texture within GL.
When updating the texture, parts of it (rectangular blocks at random positions within the texture) gets corrupted. The full code to this example is attached. Updating the texture through glTexSubImage2D doesn't help, it still gets corrupted.
When dropping the exact same GL code into the SimpleGL example (at http://wiki.maemo.org/SimpleGL_example, which uses Xlib instead of Qt), no corruption is visible at all.
Am I doing anything wrong in my example app, or is this a bug in Qt?
// Martin