diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2016-04-25 13:38:22 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-04-25 14:33:36 +0100 |
commit | f848450a70931133ab9368fd35b629c6c6e50fcb (patch) | |
tree | 648dbd35a3e44a168fa92f6d548639cb8e160bb9 /gdk/gdkglcontextprivate.h | |
parent | 1379b4b175910a253bb4aa8df3194eec2e160213 (diff) | |
download | gtk+-f848450a70931133ab9368fd35b629c6c6e50fcb.tar.gz |
gl: Use a uniform to flip R and B colors on GLES
This allows us to decide when the R and B color channels should be
flipped with a much better granularity.
For instance, when using GLX_EXT_texture_from_pixmap to create a GL
texture from a surface we don't need to swap the R and B channels, as
the internal representation of the texture data will already have the
appropriate colors.
We also don't need to flip color channels when blitting from a texture.
Diffstat (limited to 'gdk/gdkglcontextprivate.h')
-rw-r--r-- | gdk/gdkglcontextprivate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkglcontextprivate.h b/gdk/gdkglcontextprivate.h index c15524b558..cb0b76793f 100644 --- a/gdk/gdkglcontextprivate.h +++ b/gdk/gdkglcontextprivate.h @@ -56,6 +56,7 @@ typedef struct { guint position_location; guint uv_location; guint map_location; + guint flip_location; } GdkGLContextProgram; typedef struct { |