[gstreamer-bugs] [Bug 616748] New: multiply_fragment_source shader compilation error with Apple GLSL compiler

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Apr 24 20:46:58 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=616748
  GStreamer | gst-plugins-gl | 0.10.1

           Summary: multiply_fragment_source shader compilation error with
                    Apple GLSL compiler
    Classification: Desktop
           Product: GStreamer
           Version: 0.10.1
        OS/Version: Mac OS
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-gl
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: vlee at vmware.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


The multiply_fragment_source shader in
gst-plugins-gl-0.10.1/gst/gl/effects/gstgleffectssources.c fails to compile
with the Apple GLSL compiler.

This error is given.
wrong operand types no operation '-' exists that takes a left-hand operand of
type 'const int' and a right operand of type 'uniform float' (or there is no
acceptable conversion)

gst-plugins-gl-0.10.1/gst/gl/effects/gstgleffectssources.c
   265  const gchar *multiply_fragment_source =
   266      "#extension GL_ARB_texture_rectangle : enable\n"
   267      "uniform sampler2DRect base;"
   268      "uniform sampler2DRect blend;"
   269      "uniform float alpha;"
   270      "void main () {"
   271      "  vec4 basecolor = texture2DRect (base, gl_TexCoord[0].st);"
   272      "  vec4 blendcolor = texture2DRect (blend, gl_TexCoord[0].st);"
   273      "  gl_FragColor = (1 - alpha) * basecolor + alpha * basecolor *
blendcolor;"
   274      "}";


The attached patch fixes this error.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list