operations/generated: fix gamma hack condition

This boolean property should probably be dropped instead..
parent de1b1ff6
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -50,7 +50,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -89,7 +89,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R\'aG\'aB\'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -91,7 +91,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R\'aG\'aB\'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
......@@ -49,7 +49,7 @@ static void prepare (GeglOperation *operation)
{
const Babl *format;
if (GEGL_PROPERTIES (operation))
if (GEGL_PROPERTIES (operation)->srgb)
format = babl_format ("R'aG'aB'aA float");
else
format = babl_format ("RaGaBaA float");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment