mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-16 01:08:05 +02:00
st/mesa: Use correct internal target
Commit 1a339b6c(st/mesa: prefer native texture formats when possible)
introduced two new arguments to the st_choose_format() functions.
This patch fixes the order and passes the correct internal_target
rather than GL_NONE
NOTE: This is a candidate for the 7.11 branch
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 9b5c538726)
This commit is contained in:
parent
ee416c6ffe
commit
82ebfa6387
1 changed files with 2 additions and 2 deletions
|
|
@ -1400,14 +1400,14 @@ st_CopyPixels(struct gl_context *ctx, GLint srcx, GLint srcy,
|
|||
/* srcFormat can't be used as a texture format */
|
||||
if (type == GL_DEPTH) {
|
||||
texFormat = st_choose_format(screen, GL_DEPTH_COMPONENT,
|
||||
st->internal_target, GL_NONE, GL_NONE,
|
||||
GL_NONE, GL_NONE, st->internal_target,
|
||||
sample_count, PIPE_BIND_DEPTH_STENCIL);
|
||||
assert(texFormat != PIPE_FORMAT_NONE);
|
||||
}
|
||||
else {
|
||||
/* default color format */
|
||||
texFormat = st_choose_format(screen, GL_RGBA,
|
||||
st->internal_target, GL_NONE, GL_NONE,
|
||||
GL_NONE, GL_NONE, st->internal_target,
|
||||
sample_count, PIPE_BIND_SAMPLER_VIEW);
|
||||
assert(texFormat != PIPE_FORMAT_NONE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue