Lines Matching refs:fb

51  * \param fb  the framebuffer to draw to, or read from
56 const struct gl_framebuffer *fb)
60 if (_mesa_is_user_fbo(fb)) {
72 if (fb->Visual.stereoMode) {
74 if (fb->Visual.doubleBufferMode) {
78 else if (fb->Visual.doubleBufferMode) {
82 for (i = 0; i < fb->Visual.numAuxBuffers; i++) {
358 struct gl_framebuffer *fb = ctx->DrawBuffer;
361 if (_mesa_is_user_fbo(fb)) {
362 fb->_Status = 0;
387 struct gl_framebuffer *fb = ctx->DrawBuffer;
393 const GLbitfield supportedMask = supported_buffer_bitmask(ctx, fb);
411 if (fb->_ColorDrawBufferIndexes[count] != bufIndex) {
413 fb->_ColorDrawBufferIndexes[count] = bufIndex;
418 fb->ColorDrawBuffer[0] = buffers[0];
419 fb->_NumColorDrawBuffers = count;
428 if (fb->_ColorDrawBufferIndexes[buf] != bufIndex) {
430 fb->_ColorDrawBufferIndexes[buf] = bufIndex;
435 if (fb->_ColorDrawBufferIndexes[buf] != -1) {
437 fb->_ColorDrawBufferIndexes[buf] = -1;
440 fb->ColorDrawBuffer[buf] = buffers[buf];
442 fb->_NumColorDrawBuffers = count;
446 for (buf = fb->_NumColorDrawBuffers; buf < ctx->Const.MaxDrawBuffers; buf++) {
447 if (fb->_ColorDrawBufferIndexes[buf] != -1) {
449 fb->_ColorDrawBufferIndexes[buf] = -1;
453 fb->ColorDrawBuffer[buf] = GL_NONE;
456 if (_mesa_is_winsys_fbo(fb)) {
459 if (ctx->Color.DrawBuffer[buf] != fb->ColorDrawBuffer[buf]) {
461 ctx->Color.DrawBuffer[buf] = fb->ColorDrawBuffer[buf];
499 struct gl_framebuffer *fb = ctx->ReadBuffer;
501 if (_mesa_is_winsys_fbo(fb)) {
508 fb->ColorReadBuffer = buffer;
509 fb->_ColorReadBufferIndex = bufferIndex;
523 struct gl_framebuffer *fb;
532 fb = ctx->ReadBuffer;
549 supportedMask = supported_buffer_bitmask(ctx, fb);