diff --git a/cogl/cogl/driver/gl/cogl-gl-framebuffer-back.c b/cogl/cogl/driver/gl/cogl-gl-framebuffer-back.c index d6609bb20..8d76f1578 100644 --- a/cogl/cogl/driver/gl/cogl-gl-framebuffer-back.c +++ b/cogl/cogl/driver/gl/cogl-gl-framebuffer-back.c @@ -72,32 +72,32 @@ ensure_bits_initialized (CoglGlFramebufferBack *gl_framebuffer_back) GLenum attachment, pname; size_t offset; } params[] = { - { + { .attachment = GL_BACK_LEFT, .pname = GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE, .offset = offsetof (CoglFramebufferBits, red), }, - { + { .attachment = GL_BACK_LEFT, .pname = GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE, .offset = offsetof (CoglFramebufferBits, green), }, - { + { .attachment = GL_BACK_LEFT, .pname = GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE, .offset = offsetof (CoglFramebufferBits, blue), }, - { + { .attachment = GL_BACK_LEFT, .pname = GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE, .offset = offsetof (CoglFramebufferBits, alpha), }, - { + { .attachment = GL_DEPTH, .pname = GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE, .offset = offsetof (CoglFramebufferBits, depth), }, - { + { .attachment = GL_STENCIL, .pname = GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE, .offset = offsetof (CoglFramebufferBits, stencil), diff --git a/cogl/cogl/driver/gl/cogl-gl-framebuffer-fbo.c b/cogl/cogl/driver/gl/cogl-gl-framebuffer-fbo.c index c8db6a23a..1ffc1d535 100644 --- a/cogl/cogl/driver/gl/cogl-gl-framebuffer-fbo.c +++ b/cogl/cogl/driver/gl/cogl-gl-framebuffer-fbo.c @@ -82,32 +82,32 @@ ensure_bits_initialized (CoglGlFramebufferFbo *gl_framebuffer_fbo) GLenum attachment, pname; size_t offset; } params[] = { - { + { .attachment = GL_COLOR_ATTACHMENT0, .pname = GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE, .offset = offsetof (CoglFramebufferBits, red), }, - { + { .attachment = GL_COLOR_ATTACHMENT0, .pname = GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE, .offset = offsetof (CoglFramebufferBits, green), }, - { + { .attachment = GL_COLOR_ATTACHMENT0, .pname = GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE, .offset = offsetof (CoglFramebufferBits, blue), }, - { + { .attachment = GL_COLOR_ATTACHMENT0, .pname = GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE, .offset = offsetof (CoglFramebufferBits, alpha), }, - { + { .attachment = GL_DEPTH_ATTACHMENT, .pname = GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE, .offset = offsetof (CoglFramebufferBits, depth), }, - { + { .attachment = GL_STENCIL_ATTACHMENT, .pname = GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE, .offset = offsetof (CoglFramebufferBits, stencil),