Oh, I got you! I have trace into the beginNativePainting() function, and it will call glUseProgram(0) to unload the shader program.
But I have two questions about don't use beginNativePainting() before gl calls:
1.Will it cause any side-effect? If not, why Qt design this function?
2.Because I use shader program, too. Could we have two program at the same time?
Anyway, really thanks for your suggestion :-)





Reply With Quote


Bookmarks