[mutter] cogl: Don't check glGetError for functions that don't return errors
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cogl: Don't check glGetError for functions that don't return errors
- Date: Mon, 19 Sep 2022 14:45:18 +0000 (UTC)
commit dc5130ac01c8d485fce79e863a1fafbb67a6056e
Author: Daniel van Vugt <daniel van vugt canonical com>
Date: Tue Sep 6 18:00:49 2022 +0800
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>
cogl/cogl/driver/gl/cogl-framebuffer-gl.c | 4 ++--
cogl/cogl/driver/gl/cogl-util-gl.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/cogl/cogl/driver/gl/cogl-framebuffer-gl.c b/cogl/cogl/driver/gl/cogl-framebuffer-gl.c
index de5ed30d92..dfd9b99130 100644
--- a/cogl/cogl/driver/gl/cogl-framebuffer-gl.c
+++ b/cogl/cogl/driver/gl/cogl-framebuffer-gl.c
@@ -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
diff --git a/cogl/cogl/driver/gl/cogl-util-gl.c b/cogl/cogl/driver/gl/cogl-util-gl.c
index 32ecbd3c3f..ed5ee2525d 100644
--- a/cogl/cogl/driver/gl/cogl-util-gl.c
+++ b/cogl/cogl/driver/gl/cogl-util-gl.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]