Re: [Interest] Troubles with QQuickItem and custom QSGTexture bind

2017-11-27 Thread Benjamin Balga
Hi again, I really really hate myself sometimes... Face-palm so hard. Data* m_data {nullptr}; f->glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, m_width, m_rows, 0, GL_RGBA, GL_FLOAT, &m_data); It should be m_data, not &m_data, of course. All is working great now. I will blam

[Interest] Troubles with QQuickItem and custom QSGTexture bind

2017-11-27 Thread Benjamin Balga
Hello, I'm looking for some advices on how to use custom textures with QQuickItems, to check I'm doing things wrong or not... I don't know OpenGL very much, I'm just trying to port a python demo code into a QQuickItem, which uses textures for custom data. Here some of my code: Textures inheri