st: Don't try to finalize the texture in st_render_texture().
We can't necessarily finalize the texture at this point if we're rendering to a texture image whose format is different from the baselevel's format. This was introduced as a fix for fbo-incomplete-texture-03 inde414f4915
, but the later fix for vmware on that testcase in95d5c48f68
made it unnecessary. Fixes assertion failures in util_resource_copy_region() in KHR-GLES3.copy_tex_image_conversions.forbidden.* when trying to finalize an R8 texture image to the RG8 texture object's pt. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
e159d46fc7
commit
0349c79bdc
|
@ -509,14 +509,10 @@ st_render_texture(struct gl_context *ctx,
|
|||
struct gl_renderbuffer_attachment *att)
|
||||
{
|
||||
struct st_context *st = st_context(ctx);
|
||||
struct pipe_context *pipe = st->pipe;
|
||||
struct gl_renderbuffer *rb = att->Renderbuffer;
|
||||
struct st_renderbuffer *strb = st_renderbuffer(rb);
|
||||
struct pipe_resource *pt;
|
||||
|
||||
if (!st_finalize_texture(ctx, pipe, att->Texture, att->CubeMapFace))
|
||||
return;
|
||||
|
||||
pt = get_teximage_resource(att->Texture,
|
||||
att->CubeMapFace,
|
||||
att->TextureLevel);
|
||||
|
|
Loading…
Reference in New Issue