mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
glquery: provide compat definition for GL_QUERY_RESULT
e.g. android doesn't have it While we're here move a state specific assertion after the supported check. Removes an assertion on GLES
This commit is contained in:
parent
fc882653b6
commit
554b23ae48
1 changed files with 5 additions and 1 deletions
|
@ -36,6 +36,10 @@
|
|||
#define GL_TIMESTAMP 0x8E28
|
||||
#endif
|
||||
|
||||
#ifndef GL_QUERY_RESULT
|
||||
#define GL_QUERY_RESULT 0x8866
|
||||
#endif
|
||||
|
||||
#define GST_CAT_DEFAULT gst_gl_query_debug
|
||||
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
||||
|
||||
|
@ -203,10 +207,10 @@ gst_gl_query_end (GstGLQuery * query)
|
|||
|
||||
g_return_if_fail (query != NULL);
|
||||
g_return_if_fail (_query_type_supports_begin_end (query->query_type));
|
||||
g_return_if_fail (query->start_called);
|
||||
|
||||
if (!query->supported)
|
||||
return;
|
||||
g_return_if_fail (query->start_called);
|
||||
|
||||
GST_TRACE ("%p end query type \'%s\' id %u", query,
|
||||
_query_type_to_string (query->query_type), query->query_id);
|
||||
|
|
Loading…
Reference in a new issue