Reply
Thread Tools
Posts: 2 | Thanked: 1 time | Joined on Mar 2010
#1
Hi,

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
Attached Files
File Type: gz qt-gltex-bug.tar.gz (1.8 KB, 51 views)
 
Posts: 2 | Thanked: 1 time | Joined on Mar 2010
#2
I could add that this happens with both Qt 4.5 and 4.6, on a N900 with PR 1.1.1. On desktop platforms, the code works just fine.
 

The Following User Says Thank You to mstorsjo For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 22:26.