From 411153c2cba8cd8ac188aec64a0acea525eaeb5c Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 20 May 2021 11:03:02 +0200 Subject: [PATCH] vrend: don't assert texture target when attaching texture to fbo There are many possible testure targets that can be bound as framebuffer attachment, so it doesn't make sense to check assert on this here. Fixes: 4405172812f77e17e60037aca112d742b68eab29 virgl: implement EXT_multisampled_render_to_texture Signed-off-by: Gert Wollny Reviewed-by: Ryan Neph --- src/vrend_renderer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 2d534ef..ebd998a 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -2317,8 +2317,6 @@ static void vrend_framebuffer_texture_2d(struct vrend_resource *res, GLenum textarget, uint32_t texture, int32_t level, uint32_t samples) { - assert(textarget == GL_TEXTURE_2D); - if (samples == 0) { glFramebufferTexture2D(target, attachment, textarget, texture, level); } else if (!has_feature(feat_implicit_msaa)) {