Lines Matching refs:buffers
112 if (surface->format != c->state.buffers.color.format) in ggl_colorBuffer()
115 if (surface->width > c->state.buffers.coverageBufferSize) { in ggl_colorBuffer()
117 free(c->state.buffers.coverage); in ggl_colorBuffer()
118 c->state.buffers.coverage = (int16_t*)malloc(surface->width * 2); in ggl_colorBuffer()
119 c->state.buffers.coverageBufferSize = in ggl_colorBuffer()
120 c->state.buffers.coverage ? surface->width : 0; in ggl_colorBuffer()
122 ggl_set_surface(c, &(c->state.buffers.color), surface); in ggl_colorBuffer()
123 if (c->state.buffers.read.format == 0) { in ggl_colorBuffer()
124 ggl_set_surface(c, &(c->state.buffers.read), surface); in ggl_colorBuffer()
132 ggl_set_surface(c, &(c->state.buffers.read), surface); in ggl_readBuffer()
139 ggl_set_surface(c, &(c->state.buffers.depth), surface); in ggl_depthBuffer()
141 c->state.buffers.depth.format = GGL_PIXEL_FORMAT_NONE; in ggl_depthBuffer()
604 c->state.scissor.right = min(c->state.buffers.color.width, r); in ggl_set_scissor()
606 c->state.scissor.bottom = min(c->state.buffers.color.height, b); in ggl_set_scissor()
610 c->state.scissor.right = c->state.buffers.color.width; in ggl_set_scissor()
611 c->state.scissor.bottom = c->state.buffers.color.height; in ggl_set_scissor()
671 if (c->state.buffers.depth.format == 0) in ggl_enable_depth_test()