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: 4405172812
   virgl: implement EXT_multisampled_render_to_texture

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Ryan Neph <ryanneph@google.com>
macos/master
Gert Wollny 3 years ago
parent 4405172812
commit 411153c2cb
  1. 2
      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)) {

Loading…
Cancel
Save