diff options
author | Ian Romanick <[email protected]> | 2015-11-13 11:58:41 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2015-11-16 10:30:10 -0800 |
commit | c40a88b6c5a698e5297957e28cccf2ce23820caa (patch) | |
tree | 7ea57e3c9075131c31c001b21ee007bc394d920f /doxygen/math_subset.doxy | |
parent | d564b5b58e8955f807e330364ff534ce57c99d8c (diff) |
meta/generate_mipmap: Only modify the draw framebuffer binding in fallback_required
Previously GL_FRAMEBUFFER was used. However, if GL_EXT_framebuffer_blit
is supported (note: it is supported by every Mesa driver), this is
*sometimes* an alias for GL_DRAW_FRAMEBUFFER (getters) and *sometimes*
an alias for *both* GL_DRAW_FRAMEBUFFER and GL_READ_FRAMEBUFFER
(setters). As a result, the code saved one binding but modified both.
If the bindings were different, the GL_READ_FRAMEBUFFER would be
incorrect on exit.
Fixes the piglit fbo-generatemipmap-versus-READ_FRAMEBUFFER test.
Ideally this function would use DSA functions and not modify the binding
at all. However, that would be a much more intrusive change because
_mesa_meta_bind_fbo_image would also need to be modified.
_mesa_meta_bind_fbo_image has a lot of callers. Much of this code is
about to get a major rework due to bug #92363, so I don't think it
matters too much. In fact, I discovered this bug while working on the
other bug. Le bon temps!
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Cc: "10.6 11.0" <[email protected]>
Diffstat (limited to 'doxygen/math_subset.doxy')
0 files changed, 0 insertions, 0 deletions