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
2 changed files with 3 additions and 3 deletions
|
@ -305,7 +305,7 @@ cogl_gl_framebuffer_finish (CoglFramebufferDriver *driver)
|
|||
{
|
||||
CoglContext *ctx = context_from_driver (driver);
|
||||
|
||||
GE (ctx, glFinish ());
|
||||
ctx->glFinish ();
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -313,7 +313,7 @@ cogl_gl_framebuffer_flush (CoglFramebufferDriver *driver)
|
|||
{
|
||||
CoglContext *ctx = context_from_driver (driver);
|
||||
|
||||
GE (ctx, glFlush ());
|
||||
ctx->glFlush ();
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -526,7 +526,7 @@ cogl_gl_create_timestamp_query (CoglContext *context)
|
|||
* the timestamp query being placed at the point of glGetQueryObject much
|
||||
* later, resulting in a GPU timestamp much later on in time.
|
||||
*/
|
||||
GE (context, glFlush ());
|
||||
context->glFlush ();
|
||||
|
||||
return query;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue