Lines Matching refs:renderbuffer
48 #include "renderbuffer.h"
67 * with the real frame/renderbuffer.
126 * GL_INVALID_OPERATION if the renderbuffer doesn't exist.
137 "%s(non-existent renderbuffer %u)", func, id);
385 * Remove any texture or renderbuffer attached to the given attachment
436 * Create a renderbuffer which will be set up by the driver to wrap the
441 * renderbuffer, and texture attachments.
443 * The allocated renderbuffer uses a non-zero Name so that drivers can check
466 /* This can't get called on a texture renderbuffer, so set it to NULL
534 * Bind a renderbuffer to an attachment point.
554 * Attach a renderbuffer object to a framebuffer object.
596 * Check if the renderbuffer's formats are supported by the software
634 * renderbuffer attached.
691 * Is the given base format a legal format for a color renderbuffer?
716 * Is the given base format a legal format for a color renderbuffer?
773 * Is the given base format a legal format for a depth/stencil renderbuffer?
920 att_incomplete("0x0 renderbuffer");
926 att_incomplete("bad renderbuffer color format");
939 att_incomplete("bad renderbuffer depth format");
952 att_incomplete("bad renderbuffer stencil format");
1060 /* get width, height, format of the renderbuffer/texture
1201 fbo_incomplete(ctx, "unsupported renderbuffer format", i);
1396 _mesa_IsRenderbuffer(GLuint renderbuffer)
1404 rb = _mesa_lookup_renderbuffer(ctx, renderbuffer);
1410 allocate_renderbuffer_locked(struct gl_context *ctx, GLuint renderbuffer,
1415 /* create new renderbuffer object */
1416 newRb = ctx->Driver.NewRenderbuffer(ctx, renderbuffer);
1422 _mesa_HashInsertLocked(ctx->Shared->RenderBuffers, renderbuffer, newRb);
1429 bind_renderbuffer(GLenum target, GLuint renderbuffer)
1443 if (renderbuffer) {
1444 newRb = _mesa_lookup_renderbuffer(ctx, renderbuffer);
1446 /* ID was reserved, but no real renderbuffer object made yet */
1458 newRb = allocate_renderbuffer_locked(ctx, renderbuffer,
1473 _mesa_BindRenderbuffer(GLenum target, GLuint renderbuffer)
1478 bind_renderbuffer(target, renderbuffer);
1482 _mesa_BindRenderbufferEXT(GLenum target, GLuint renderbuffer)
1484 bind_renderbuffer(target, renderbuffer);
1769 * Remove the specified renderbuffer or texture from any attachment point in
1773 * \c true if the renderbuffer was detached from an attachment point. \c
1829 /* check if deleting currently bound renderbuffer object */
1840 * "If a renderbuffer object is deleted while its image is
1843 * had been called, with a renderbuffer of 0, for each
1846 * renderbuffer image is first detached from all attachment
1848 * renderbuffer image is specifically not detached from any
1898 /* insert a dummy renderbuffer into the hash table */
2285 * Invalidate a renderbuffer attachment. Called from _mesa_HashWalk().
2369 /* Invalidate the framebuffers the renderbuffer is attached in. */
2446 renderbuffer_storage_named(GLuint renderbuffer, GLenum internalFormat,
2455 func, renderbuffer,
2460 func, renderbuffer,
2465 struct gl_renderbuffer *rb = _mesa_lookup_renderbuffer(ctx, renderbuffer);
2467 /* ID was reserved, but no real renderbuffer object made yet */
2468 _mesa_error(ctx, GL_INVALID_OPERATION, "%s(invalid renderbuffer %u)",
2469 func, renderbuffer);
2510 _mesa_error(ctx, GL_INVALID_OPERATION, "%s(no renderbuffer bound)",
2555 * renderbuffer/texture was created with internalFormat=GL_RGB but the
2627 _mesa_NamedRenderbufferStorage(GLuint renderbuffer, GLenum internalformat,
2634 renderbuffer_storage_named(renderbuffer, internalformat, width, height,
2639 _mesa_NamedRenderbufferStorageMultisample(GLuint renderbuffer, GLsizei samples,
2643 renderbuffer_storage_named(renderbuffer, internalformat, width, height,
2651 GLuint renderbuffer, GLsizei samples, GLsizei storageSamples,
2654 renderbuffer_storage_named(renderbuffer, internalformat, width, height,
2720 "(no renderbuffer bound)");
2730 _mesa_GetNamedRenderbufferParameteriv(GLuint renderbuffer, GLenum pname,
2735 struct gl_renderbuffer *rb = _mesa_lookup_renderbuffer(ctx, renderbuffer);
2737 /* ID was reserved, but no real renderbuffer object made yet */
2739 "(invalid renderbuffer %i)", renderbuffer);
3531 * point. Don't create a new renderbuffer; just reuse the stencil
3552 /* Above we created a new renderbuffer and attached it to the
3904 GLuint renderbuffer, const char *func, bool no_error)
3916 if (renderbuffer) {
3918 rb = _mesa_lookup_renderbuffer_err(ctx, renderbuffer, func);
3922 rb = _mesa_lookup_renderbuffer(ctx, renderbuffer);
3925 /* remove renderbuffer attachment */
3965 /* make sure the renderbuffer is a depth/stencil format */
3969 "%s(renderbuffer is not DEPTH_STENCIL format)", func);
3982 GLuint renderbuffer, const char *func)
3985 renderbuffer, func, false);
3992 GLuint renderbuffer, const char *func)
3995 renderbuffer, func, true);
4001 GLuint renderbuffer)
4007 renderbuffer, "glFramebufferRenderbuffer");
4013 GLuint renderbuffer)
4027 renderbuffer, "glFramebufferRenderbuffer");
4034 GLuint renderbuffer)
4040 renderbuffer,
4047 GLuint renderbuffer)
4058 renderbuffer,
4708 * and stencil and they both point at the same renderbuffer.