diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-11-06 23:29:16 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-11-06 23:29:16 -0500 |
commit | 5d0d1e524e6b6a6e190cbbf48d467ed80ee9118f (patch) | |
tree | 09497e3bae887dc3c10775748525a5f10ba6f5d9 /gdk/gdkgl.c | |
parent | d859cf19f67d33ee4a730c53e8d5de4b34da4987 (diff) | |
download | gtk+-5d0d1e524e6b6a6e190cbbf48d467ed80ee9118f.tar.gz |
Export API to set GL flags
This will be used in the inspector.
Diffstat (limited to 'gdk/gdkgl.c')
-rw-r--r-- | gdk/gdkgl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c index 3b843f15ca..152941166f 100644 --- a/gdk/gdkgl.c +++ b/gdk/gdkgl.c @@ -393,7 +393,7 @@ gdk_cairo_draw_from_gl (cairo_t *cr, /* For direct paint of non-alpha renderbuffer, we can just do a bitblit */ - if ((_gdk_gl_flags & GDK_GL_FLAGS_SOFTWARE_DRAW_GL) == 0 && + if ((_gdk_gl_flags & GDK_GL_SOFTWARE_DRAW_GL) == 0 && source_type == GL_RENDERBUFFER && alpha_size == 0 && direct_window != NULL && @@ -474,7 +474,7 @@ gdk_cairo_draw_from_gl (cairo_t *cr, } /* For direct paint of alpha or non-alpha textures we can use texturing */ - else if ((_gdk_gl_flags & GDK_GL_FLAGS_SOFTWARE_DRAW_GL) == 0 && + else if ((_gdk_gl_flags & GDK_GL_SOFTWARE_DRAW_GL) == 0 && source_type == GL_TEXTURE && direct_window != NULL && direct_window->current_paint.use_gl && @@ -663,7 +663,7 @@ gdk_gl_texture_from_surface (cairo_surface_t *surface, guint target; paint_context = gdk_gl_context_get_current (); - if ((_gdk_gl_flags & GDK_GL_FLAGS_SOFTWARE_DRAW_SURFACE) == 0 && + if ((_gdk_gl_flags & GDK_GL_SOFTWARE_DRAW_SURFACE) == 0 && paint_context && GDK_GL_CONTEXT_GET_CLASS (paint_context)->texture_from_surface && GDK_GL_CONTEXT_GET_CLASS (paint_context)->texture_from_surface (paint_context, surface, region)) |