mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
gl/tests: fix shader creation tests part 2
Continuation of4fd7a2c783
We check the availability of the high precision floats in GLSL shaders which involves an OpenGL call and thus is required to be executed on the OpenGL thread. The tests were not respecting that and could fail on more strict drivers. Tests update for675415bf2e
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/590
This commit is contained in:
parent
4fd7a2c783
commit
bdb43689a9
1 changed files with 5 additions and 5 deletions
|
@ -104,7 +104,6 @@ teardown (void)
|
|||
GST_START_TEST (test_constructors)
|
||||
{
|
||||
GstBufferPool *pool = NULL;
|
||||
GstGLSLStage *stage = NULL;
|
||||
GstGLColorConvert *convert = NULL;
|
||||
GstGLOverlayCompositor *compositor = NULL;
|
||||
GstGLUpload *upload = NULL;
|
||||
|
@ -113,10 +112,6 @@ GST_START_TEST (test_constructors)
|
|||
fail_if (pool == NULL);
|
||||
gst_object_unref (pool);
|
||||
|
||||
stage = gst_glsl_stage_new_default_fragment (context);
|
||||
fail_if (stage == NULL);
|
||||
gst_object_unref (stage);
|
||||
|
||||
convert = gst_gl_color_convert_new (context);
|
||||
fail_if (convert == NULL);
|
||||
gst_object_unref (convert);
|
||||
|
@ -137,6 +132,7 @@ _construct_with_activated_context (GstGLContext * context, gpointer unused)
|
|||
{
|
||||
GstGLFramebuffer *framebuffer = NULL;
|
||||
GstGLShader *shader = NULL;
|
||||
GstGLSLStage *stage = NULL;
|
||||
|
||||
framebuffer = gst_gl_framebuffer_new (context);
|
||||
fail_if (framebuffer == NULL);
|
||||
|
@ -145,6 +141,10 @@ _construct_with_activated_context (GstGLContext * context, gpointer unused)
|
|||
shader = gst_gl_shader_new (context);
|
||||
fail_if (shader == NULL);
|
||||
gst_object_unref (shader);
|
||||
|
||||
stage = gst_glsl_stage_new_default_fragment (context);
|
||||
fail_if (stage == NULL);
|
||||
gst_object_unref (stage);
|
||||
}
|
||||
|
||||
GST_START_TEST (test_constructors_require_activated_context)
|
||||
|
|
Loading…
Reference in a new issue