mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
i965/dri: Fix bad GL error in intel_create_winsys_renderbuffer()
This function never occurs in the callchain of a GL function. It occurs only in the callchain of eglCreate*Surface and the analogous paths for GLX. Therefore, even if a thread does have a bound GL context, emitting a GL error here is wrong. A misplaced GL error, when no GL call is made, can confuse clients. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
a23cabd8ca
commit
9d996e94fb
1 changed files with 1 additions and 5 deletions
|
|
@ -440,13 +440,9 @@ intel_nop_alloc_storage(struct gl_context * ctx, struct gl_renderbuffer *rb,
|
|||
struct intel_renderbuffer *
|
||||
intel_create_winsys_renderbuffer(mesa_format format, unsigned num_samples)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
struct intel_renderbuffer *irb = CALLOC_STRUCT(intel_renderbuffer);
|
||||
if (!irb) {
|
||||
_mesa_error(ctx, GL_OUT_OF_MEMORY, "creating renderbuffer");
|
||||
if (!irb)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct gl_renderbuffer *rb = &irb->Base.Base;
|
||||
irb->layer_count = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue