[gtk/wip/chergert/glproto: 485/526] remove branch from hot path
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 485/526] remove branch from hot path
- Date: Tue, 16 Feb 2021 01:14:39 +0000 (UTC)
commit 68d5bbdf722d8948b580c459692a376b4e31410d
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 9 10:47:39 2021 -0800
remove branch from hot path
this shouldn't really be needed because we can be sure they program
has been accessed by here.
gsk/next/gskgluniformstateprivate.h | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/gsk/next/gskgluniformstateprivate.h b/gsk/next/gskgluniformstateprivate.h
index 55df886ea4..731411a492 100644
--- a/gsk/next/gskgluniformstateprivate.h
+++ b/gsk/next/gskgluniformstateprivate.h
@@ -209,9 +209,6 @@ gsk_gl_uniform_state_get_uniform_data (const GskGLUniformState *state,
G_STMT_START { \
GskGLUniformProgram *program_info; \
\
- if G_UNLIKELY (program_id >= state->program_info->len) \
- break; \
- \
program_info = &g_array_index (state->program_info, GskGLUniformProgram, program_id); \
if (program_info->n_changed == 0) \
break; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]