[207/906] oups, fix my mistake on last commit

This commit is contained in:
Julien Isorce 2008-08-24 03:38:40 +02:00 committed by Matthew Waters
parent c8fb510e4f
commit dc96363485

View file

@ -962,6 +962,12 @@ gst_gl_display_thread_init_upload (GstGLDisplay *display)
case GST_VIDEO_FORMAT_AYUV: case GST_VIDEO_FORMAT_AYUV:
//color space conversion is needed //color space conversion is needed
{ {
//check if fragment shader is available, then load them
/* shouldn't we require ARB_shading_language_100? --Filippo */
if (GLEW_ARB_fragment_shader)
{
g_print ("Context %d, ARB_fragment_shader supported: yes\n", display->glutWinId);
//Frame buffer object is a requirement for every cases //Frame buffer object is a requirement for every cases
if (GLEW_EXT_framebuffer_object) if (GLEW_EXT_framebuffer_object)
{ {
@ -1011,14 +1017,9 @@ gst_gl_display_thread_init_upload (GstGLDisplay *display)
//turn off the pipeline because Frame buffer object is a not present //turn off the pipeline because Frame buffer object is a not present
g_print ("Context %d, EXT_framebuffer_object supported: no\n", display->glutWinId); g_print ("Context %d, EXT_framebuffer_object supported: no\n", display->glutWinId);
display->isAlive = FALSE; display->isAlive = FALSE;
break;
} }
//check if fragment shader is available, then load them
/* shouldn't we require ARB_shading_language_100? --Filippo */
if (GLEW_ARB_fragment_shader)
{
g_print ("Context %d, ARB_fragment_shader supported: yes\n", display->glutWinId);
display->upload_colorspace_conversion = GST_GL_DISPLAY_CONVERSION_GLSL; display->upload_colorspace_conversion = GST_GL_DISPLAY_CONVERSION_GLSL;
switch (display->upload_video_format) switch (display->upload_video_format)