if (draw_buffer == GL_NONE) {
return NULL;
}
+ } else {
+ draw_buffer = GL_COLOR_ATTACHMENT0;
}
if (!getFramebufferAttachmentDesc(context, framebuffer_target, draw_buffer, desc)) {
if (draw_buffer == GL_NONE) {
return NULL;
}
+ } else {
+ draw_buffer = GL_COLOR_ATTACHMENT0;
}
if (!getDrawableBounds(&desc.width, &desc.height)) {