mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
st/mesa: assign renderbuffer's format field when allocating storage
See http://bugs.freedesktop.org/show_bug.cgi?id=36173
NOTE: This is a candidate for the 7.10 branch.
Signed-off-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit fd6f2d6e57)
This commit is contained in:
parent
224ed851ed
commit
1b8df41f75
1 changed files with 1 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ st_renderbuffer_alloc_storage(struct gl_context * ctx, struct gl_renderbuffer *r
|
|||
strb->Base.Format = st_pipe_format_to_mesa_format(format);
|
||||
strb->Base._BaseFormat = _mesa_base_fbo_format(ctx, internalFormat);
|
||||
strb->Base.DataType = st_format_datatype(format);
|
||||
strb->format = format;
|
||||
|
||||
strb->defined = GL_FALSE; /* undefined contents now */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue