mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
cogl: Don't check glGetError for functions that don't return errors
This will at least make debug builds a tiny bit faster. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2615>
This commit is contained in:
parent
f1d7ccfa79
commit
dc5130ac01
@ -305,7 +305,7 @@ cogl_gl_framebuffer_finish (CoglFramebufferDriver *driver)
|
|||||||
{
|
{
|
||||||
CoglContext *ctx = context_from_driver (driver);
|
CoglContext *ctx = context_from_driver (driver);
|
||||||
|
|
||||||
GE (ctx, glFinish ());
|
ctx->glFinish ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -313,7 +313,7 @@ cogl_gl_framebuffer_flush (CoglFramebufferDriver *driver)
|
|||||||
{
|
{
|
||||||
CoglContext *ctx = context_from_driver (driver);
|
CoglContext *ctx = context_from_driver (driver);
|
||||||
|
|
||||||
GE (ctx, glFlush ());
|
ctx->glFlush ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -526,7 +526,7 @@ cogl_gl_create_timestamp_query (CoglContext *context)
|
|||||||
* the timestamp query being placed at the point of glGetQueryObject much
|
* the timestamp query being placed at the point of glGetQueryObject much
|
||||||
* later, resulting in a GPU timestamp much later on in time.
|
* later, resulting in a GPU timestamp much later on in time.
|
||||||
*/
|
*/
|
||||||
GE (context, glFlush ());
|
context->glFlush ();
|
||||||
|
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user