Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use an intermediate renderbuffer when blitting between texture arrays… #3327

Closed
wants to merge 1 commit into from

Commits on Nov 20, 2018

  1. Use an intermediate renderbuffer when blitting between texture arrays…

    … on adreno devices
    
    When the texture cache is grown we allocate a larger texture array
    then copy each layer of the old array in to the new one. To perform
    this copy we use use glBlitFramebuffer, with the read and draw
    framebuffers bound to the correct layer in the old and new textures.
    
    Unfortunately on Adreno devices this does not work. glBlitFramebuffer
    always writes to the 0th layer of the texture bound to the draw
    framebuffer. glCopyTexSubImage3D also does not work correctly - it
    always reads from the 0th layer of the texture bound to the read
    framebuffer.
    
    As a workaround, we use glBlitFramebuffer to blit from the old texture
    in to a temporary renderbuffer, then use glCopyTexSubImage3D to copy
    from that renderbuffer to the new texture.
    jamienicol committed Nov 20, 2018
You can’t perform that action at this time.