X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fglstate_images.cpp;h=f3949b51d2182d8437a192311649a3057a8b4214;hb=df80495e48ee0b82a7f4f2882072608fce317b87;hp=7b0a42473fdf97cbc8c04ad4910247d078d4b2cf;hpb=6083cfc0885f162b532825b23639f0ec2fe285c2;p=apitrace diff --git a/retrace/glstate_images.cpp b/retrace/glstate_images.cpp index 7b0a424..f3949b5 100644 --- a/retrace/glstate_images.cpp +++ b/retrace/glstate_images.cpp @@ -745,6 +745,8 @@ getDrawBufferImage() { if (draw_buffer == GL_NONE) { return NULL; } + } else { + draw_buffer = GL_COLOR_ATTACHMENT0; } if (!getFramebufferAttachmentDesc(context, framebuffer_target, draw_buffer, desc)) { @@ -756,6 +758,8 @@ getDrawBufferImage() { if (draw_buffer == GL_NONE) { return NULL; } + } else { + draw_buffer = GL_COLOR_ATTACHMENT0; } if (!getDrawableBounds(&desc.width, &desc.height)) {