Lines Matching defs:buffer
41 // Check to see if we need to allocate a new buffer
42 if ((window->context.osmesa.buffer == NULL) ||
46 _glfw_free(window->context.osmesa.buffer);
48 // Allocate the new buffer (width * height * 8-bit RGBA)
49 window->context.osmesa.buffer = _glfw_calloc(4, (size_t) width * height);
55 window->context.osmesa.buffer,
81 if (window->context.osmesa.buffer)
83 _glfw_free(window->context.osmesa.buffer);
295 int* height, int* format, void** buffer)
316 "OSMesa: Failed to retrieve color buffer");
326 if (buffer)
327 *buffer = mesaBuffer;
335 void** buffer)
356 "OSMesa: Failed to retrieve depth buffer");
366 if (buffer)
367 *buffer = mesaBuffer;