Will fragment shaders work with glDrawPixels

Are fragment shaders supposed to run when using glDrawPixels? It seems to work on my nvidia card, but I’ve had mixed results on some ATI cards. It doesn’t seem to work on my HD Radeon 3450, but I don’t know if that’s a bug or by design.

Fragment shaders should be executed by glDrawPixels (though I have no idea what the fragment shader inputs would be), so this is a driver bug. However, I wouldn’t hold my breath on it getting fixed anytime soon. This is a pretty low-priority case; most people using shaders simply don’t use glDrawPixels. If they need to do that, they upload to a texture and then render a quad with that texture on it.

Alfonse,

That’s what I was afraid of. I’ll see if I can switch to using texture mapping with the quads instead of glDrawPixels.

Thanks,
Jeff

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.