[gtk/wip/chergert/glproto: 335/493] add issing 1ui handler possibly used by GskGLShader args
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 335/493] add issing 1ui handler possibly used by GskGLShader args
- Date: Fri, 19 Feb 2021 02:25:15 +0000 (UTC)
commit b3eac28ddb9c8e3d280c6146372b9b5d0b414bdf
Author: Christian Hergert <chergert redhat com>
Date: Mon Feb 1 21:23:16 2021 -0800
add issing 1ui handler possibly used by GskGLShader args
gsk/next/gskglcommandqueue.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index b40423f841..e04c6037ee 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -681,6 +681,7 @@ apply_uniform (GskGLUniformState *state,
GskRoundedRect rounded_rect[0];
float fval[0];
int ival[0];
+ guint uval[0];
} *data;
data = gsk_gl_uniform_state_get_uniform_data (state, info->offset);
@@ -736,6 +737,10 @@ apply_uniform (GskGLUniformState *state,
glUniform4i (location, data->ival[0], data->ival[1], data->ival[2], data->ival[3]);
break;
+ case GSK_GL_UNIFORM_FORMAT_1UI:
+ glUniform1ui (location, data->uval[0]);
+ break;
+
case GSK_GL_UNIFORM_FORMAT_MATRIX: {
float mat[16];
graphene_matrix_to_float (&data->matrix[0], mat);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]