PDA

View Full Version : glsl - specify buffer, but no assigdment to frag



EatColdSteel
06-24-2009, 07:27 AM
Hello

i'm curious what will happen if I assign a render buffer (using glDrawBuffers for instance) to buffer #3, and fail to assign any value in my shader program to gl_FragData[3] -
will the buffer be filled with garbage or zeros or undefined or what?

Thank you!

glfreak
06-24-2009, 12:49 PM
Undefined - filled with nothing.

MalcolmB
06-24-2009, 04:20 PM
Undefined means it's filled with anything. Unchanged, random data or black are possible examples.