Support multiple textures
jdm opened this issue · 5 comments
For servo/servo#21841 I would like to be able to have one texture that is ready for webrender at all times, and one texture that is ready for drawing. master...jdm:multiple is my attempt (along with servo/servo@master...jdm:gl) but it's not working correctly yet. @emilio can you advise if I'm missing something?
so create_texture in that function does create a texture, but also binds it. So you'll leave the complete texture bound during setup, is that what you want?
Good point, thanks.
It actually unbinds before returning in create_texture.
pff, that's right, sorry, should've looked closer :(
I don't see anything obviously wrong with your code. I've noticed you changed the default clear color and such... I'd try to create some sort of reduced test-case that doesn't work as expected and run it with the MESA_DEBUG variable under linux, it generally points out all the dumb errors... Maybe you can cargo-cult something from the existing unit tests?
I think I sorted out the issues. Thanks for taking a look!