question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blocking local test failure after merging non-RGBA8 multisampled framebuffers

See original GitHub issue

Since merging #7619 I’m consistently getting this error. It’s blocking me from making a new v7 release. This isn’t failing on CI.

Summary of all failing tests
 FAIL  packages/core/test/RenderTexture.tests.ts
  ● Test suite failed to run

      ● RenderTexture › FloatRenderTexture › should render correctly with mask, multisampling, and format RED / type FLOAT

        expect(received).toEqual(expected) // deep equality

        Expected: 1
        Received: 0.30000001192092896

          387 |             gl.readPixels(0, 0, 1, 1, gl.RED, gl.FLOAT, pixel);
          388 |
        > 389 |             expect(pixel[0]).toEqual(1.0);
              |                              ^
          390 |
          391 |             pixel.set([0.1]);
          392 |

      at Object.<anonymous> (packages/core/test/RenderTexture.tests.ts:389:30)
        ● RenderTexture › FloatRenderTexture › should resize multisampled framebuffer with format RED / type FLOAT
          expect(received).toEqual(expected) // deep equality
          Expected: 1
          Received: 0.30000001192092896
            430 |             gl.readPixels(1, 1, 1, 1, gl.RED, gl.FLOAT, pixel);
            431 |
          > 432 |             expect(pixel[0]).toEqual(1.0);
                |                              ^
            433 |         });
            434 |     });
            435 | });
      at Object.<anonymous> (packages/core/test/RenderTexture.tests.ts:432:30)

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
SuperSodaSeacommented, Oct 20, 2022

Seems that there is some problem renderer.framebuffer.blit(). Let me see if I can fix this…

1reaction
bigtimebuddycommented, Oct 20, 2022

Changing MSAA_QUALITY didn’t seem to work 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

Framebuffer - OpenGL Wiki - Khronos Group
Any attempt to perform read operations will fail with an error (GL_INVALID_OPERATION). Draw color buffers. Much as with the read buffer, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found