summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorMatthew Waters <ystreet00@gmail.com>2013-10-26 02:20:17 +1100
committerSebastian Dröge <sebastian@centricular.com>2013-12-27 11:46:19 +0100
commit452b52a7d1d1d4e77f9fcfdcea3b0a0be067590b (patch)
tree193d20b1b02df1ad99c7daa3bb9be1e4e2c149df /gst
parentf677234404f3a83850d887f8ff6fd227abecbff0 (diff)
testsrc: use _context_get_gl_api
Diffstat (limited to 'gst')
-rw-r--r--gst/gl/gltestsrc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/gl/gltestsrc.c b/gst/gl/gltestsrc.c
index cbc344b..db28017 100644
--- a/gst/gl/gltestsrc.c
+++ b/gst/gl/gltestsrc.c
@@ -86,7 +86,7 @@ gst_gl_test_src_smpte (GstGLTestSrc * v, GstBuffer * buffer, int w, int h)
#if GST_GL_HAVE_OPENGL
int i;
- if (gst_gl_display_get_gl_api (v->display) & GST_GL_API_OPENGL) {
+ if (gst_gl_context_get_gl_api (v->context) & GST_GL_API_OPENGL) {
glClearColor (0.0, 0.0, 0.0, 1.0);
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@@ -192,7 +192,7 @@ void
gst_gl_test_src_snow (GstGLTestSrc * v, GstBuffer * buffer, int w, int h)
{
#if GST_GL_HAVE_OPENGL
- if (gst_gl_display_get_gl_api (v->display) & GST_GL_API_OPENGL) {
+ if (gst_gl_context_get_gl_api (v->context) & GST_GL_API_OPENGL) {
glClearColor (0.0, 0.0, 0.0, 1.0);
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@@ -219,7 +219,7 @@ gst_gl_test_src_unicolor (GstGLTestSrc * v, GstBuffer * buffer, int w,
int h, const struct vts_color_struct *color)
{
#if GST_GL_HAVE_OPENGL
- if (gst_gl_display_get_gl_api (v->display) & GST_GL_API_OPENGL) {
+ if (gst_gl_context_get_gl_api (v->context) & GST_GL_API_OPENGL) {
glClearColor (color->R * (1 / 255.0f), color->G * (1 / 255.0f),
color->B * (1 / 255.0f), 1.0f);
glClear (GL_COLOR_BUFFER_BIT);