mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
st/mesa: fix renderbuffer validation bug
After we attach a new renderbuffer in this function we need to make sure Mesa's update_framebuffer() gets called. Fixes crash in WebGL conformance/textures/texture-attachment-formats.html, but the test still fails for other reasons. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=53316 Note: This is a candidate for the 8.0 branch. Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
9f5a5d541d
commit
cf77c29e60
1 changed files with 6 additions and 0 deletions
|
|
@ -458,6 +458,12 @@ st_render_texture(struct gl_context *ctx,
|
|||
* passed to the pipe as a (color/depth) render target.
|
||||
*/
|
||||
st_invalidate_state(ctx, _NEW_BUFFERS);
|
||||
|
||||
|
||||
/* Need to trigger a call to update_framebuffer() since we just
|
||||
* attached a new renderbuffer.
|
||||
*/
|
||||
ctx->NewState |= _NEW_BUFFERS;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue