mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
glframebuffer: Improve error tracing
glCheckFrameStatus() can fail by returning 0, and otherwise return a status. Fix the trace to make it clear when we get an unkown status compare to having an error, in which case we also trace the error code. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7295>
This commit is contained in:
parent
65f1c70430
commit
487e41b815
1 changed files with 7 additions and 1 deletions
|
@ -576,8 +576,14 @@ gst_gl_context_check_framebuffer_status (GstGLContext * context,
|
||||||
GST_WARNING_OBJECT (context, "GL_FRAMEBUFFER_UNDEFINED");
|
GST_WARNING_OBJECT (context, "GL_FRAMEBUFFER_UNDEFINED");
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
case 0:
|
||||||
|
ret = context->gl_vtable->GetError ();
|
||||||
|
GST_ERROR_OBJECT (context,
|
||||||
|
"Error calling glCheckFramebufferStatus(0x%X): %d (0x%X)",
|
||||||
|
fbo_target, ret, ret);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
GST_WARNING_OBJECT (context, "Unknown FBO error: %d (0x%x)", ret, ret);
|
GST_WARNING_OBJECT (context, "Unknown FBO status: %d (0x%X)", ret, ret);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue