NVidia Framebuffer Attachments Color Location

Hello Forums,

I have an issue with FBOs Color Attachments in my code, which I thing could be driver related (NVidia).
I am trying to bind FBO Color Attachments to my FBO NOT “in order”, so I start with GL_COLOR_ATTACHMENT5 and then continue with GL_COLOR_ATTACHMENT3 etc. but what happens is, that the Attachments are being put “in order”, like the first one will be 0, the secound 1 and so on.

The best way to check this is when you have a frag shader which outputs the color orange(1, 0.5, 0, 1) on out location=0 and another blue(0, 0, 1, 1) at out location = 5. Then you make an fbo with a color attachment at 5 and render something. on my computer it would show the orange color, even when you would expect it to show the blue one.

I could only test this on Nvidia and I think that it may not be noticed before because everyone attached all its stuff “in order”. I may post a test code l

My “test” system:
Notebook Dell Latitude 6520
Intel i7-2640M (4 cores @ 2.8 GHz)
NVdida NVS 4200M (96 cores, 512 MB VRAM only :()


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