mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
st/mesa: set renderbuffer _BaseFormat in a few places
NOTE: This is a candidate for the 7.9 and 7.10 branches
(cherry picked from commit 633c9fcf78)
This commit is contained in:
parent
f3f0e30e8e
commit
0ed0670fa9
1 changed files with 2 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ st_renderbuffer_alloc_storage(struct gl_context * ctx, struct gl_renderbuffer *r
|
|||
strb->Base.Width = width;
|
||||
strb->Base.Height = height;
|
||||
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->defined = GL_FALSE; /* undefined contents now */
|
||||
|
|
@ -231,6 +232,7 @@ st_new_renderbuffer_fb(enum pipe_format format, int samples, boolean sw)
|
|||
strb->Base.ClassID = 0x4242; /* just a unique value */
|
||||
strb->Base.NumSamples = samples;
|
||||
strb->Base.Format = st_pipe_format_to_mesa_format(format);
|
||||
strb->Base._BaseFormat = _mesa_get_format_base_format(strb->Base.Format);
|
||||
strb->Base.DataType = st_format_datatype(format);
|
||||
strb->format = format;
|
||||
strb->software = sw;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue