mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 13:33:34 +00:00
Fix MSAA Canvas readback;
This commit is contained in:
parent
6d2fdac89f
commit
90e985c45b
|
@ -2035,6 +2035,10 @@ TextureData* lovrCanvasNewTextureData(Canvas* canvas, uint32_t index) {
|
||||||
lovrGraphicsFlushCanvas(canvas);
|
lovrGraphicsFlushCanvas(canvas);
|
||||||
lovrGpuBindCanvas(canvas, false);
|
lovrGpuBindCanvas(canvas, false);
|
||||||
|
|
||||||
|
if (canvas->flags.msaa) {
|
||||||
|
glBindFramebuffer(GL_READ_FRAMEBUFFER, canvas->resolveBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef LOVR_WEBGL
|
#ifndef LOVR_WEBGL
|
||||||
Texture* texture = canvas->attachments[index].texture;
|
Texture* texture = canvas->attachments[index].texture;
|
||||||
if ((texture->incoherent >> BARRIER_TEXTURE) & 1) {
|
if ((texture->incoherent >> BARRIER_TEXTURE) & 1) {
|
||||||
|
|
Loading…
Reference in a new issue