mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
gallium: Set renderbuffer's InternalFormat when rendering to texture
When an FBO is rendering to a texture (rather than a renderbuffer), Gallium sets up an internal renderbuffer to handle the rendering, and copies over enough texture state to make this work. InternalFormat was missed out, causing glTexCopyImage to take a slow path unnecessarily. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=41263 Signed-off-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk> Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
e7843273fa
commit
c6f9d80ad2
1 changed files with 1 additions and 0 deletions
|
|
@ -381,6 +381,7 @@ st_render_texture(struct gl_context *ctx,
|
|||
rb->Width = texImage->Width2;
|
||||
rb->Height = texImage->Height2;
|
||||
rb->_BaseFormat = texImage->_BaseFormat;
|
||||
rb->InternalFormat = texImage->InternalFormat;
|
||||
/*printf("***** render to texture level %d: %d x %d\n", att->TextureLevel, rb->Width, rb->Height);*/
|
||||
|
||||
/*printf("***** pipe texture %d x %d\n", pt->width0, pt->height0);*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue