X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glstate.cpp;h=d54764ce7bf5e8b6c9b8db59bc420e88bebfa5a0;hb=de9f3e57434ce5409fadb5dceb249c2e98e0d594;hp=329276ffdf0b38e9ba8e91fcb9a36241b80c91c8;hpb=e9426dd61586757d23d7dddc85b3076f477e7f07;p=apitrace diff --git a/glstate.cpp b/glstate.cpp index 329276f..d54764c 100644 --- a/glstate.cpp +++ b/glstate.cpp @@ -953,7 +953,8 @@ getFramebufferAttachmentFormat(GLenum target, GLenum attachment) image::Image * -getDrawBufferImage(GLenum format) { +getDrawBufferImage() { + GLenum format = GL_RGB; GLint channels = __gl_format_channels(format); if (channels > 4) { return NULL; @@ -1204,7 +1205,10 @@ dumpDrawableImages(JSONWriter &json) glGetIntegerv(GL_READ_BUFFER, &read_buffer); GLint alpha_bits = 0; +#if 0 + // XXX: Ignore alpha until we are able to match the traced visual glGetIntegerv(GL_ALPHA_BITS, &alpha_bits); +#endif GLenum format = alpha_bits ? GL_RGBA : GL_RGB; json.beginMember(enumToString(draw_buffer)); dumpReadBufferImage(json, width, height, format); @@ -1229,6 +1233,8 @@ dumpDrawableImages(JSONWriter &json) json.endMember(); } } + + /** * Dump the specified framebuffer attachment. *