Trouble with GrayScale Filter

BlitzPlus Forums/BlitzPlus Programming/Trouble with GrayScale Filter

I was trying to write a greyscale filter. I thought I was going in the right direction with it, but the program isn't doing what I had expected.

I'm trying to only show luminosity levels on the picture in backbuffer(). Any help would be appreciated.

Thanks,

Ben