Lines Matching refs:drawBuffer
1178 xmesa_check_and_update_buffer_size(XMesaContext xmctx, XMesaBuffer drawBuffer) in xmesa_check_and_update_buffer_size() argument
1181 xmesa_get_window_size(drawBuffer->display, drawBuffer, &width, &height); in xmesa_check_and_update_buffer_size()
1182 if (drawBuffer->mesa_buffer.Width != width || in xmesa_check_and_update_buffer_size()
1183 drawBuffer->mesa_buffer.Height != height) { in xmesa_check_and_update_buffer_size()
1185 _mesa_resize_framebuffer(ctx, &(drawBuffer->mesa_buffer), width, height); in xmesa_check_and_update_buffer_size()
1187 drawBuffer->mesa_buffer.Initialized = GL_TRUE; /* XXX TEMPORARY? */ in xmesa_check_and_update_buffer_size()
1204 GLboolean XMesaMakeCurrent2( XMesaContext c, XMesaBuffer drawBuffer, in XMesaMakeCurrent2() argument
1208 if (!drawBuffer || !readBuffer) in XMesaMakeCurrent2()
1212 && c->mesa.DrawBuffer == &drawBuffer->mesa_buffer in XMesaMakeCurrent2()
1219 c->xm_buffer = drawBuffer; in XMesaMakeCurrent2()
1226 xmesa_check_and_update_buffer_size(c, drawBuffer); in XMesaMakeCurrent2()
1227 if (readBuffer != drawBuffer) in XMesaMakeCurrent2()
1231 &drawBuffer->mesa_buffer, in XMesaMakeCurrent2()
1244 XMesaSetForeground(c->display, drawBuffer->cleargc, c->clearpixel); in XMesaMakeCurrent2()
1247 drawBuffer->wasCurrent = GL_TRUE; in XMesaMakeCurrent2()