my apologies for being new to opengl,
does order matter when call glUseProgram and glBindFramebuffer?
if I -
glUseProgram(1)
glBindFramebuffer(x)
dlDrawElements()
Will I be using program 1?
Thanks!
glUseProgram and glBindFramebuffer order
Started by funnyben123, Dec 19 2012 09:49 PM
1 reply to this topic
Ad:
#2 Members - Reputation: 321
Posted 20 December 2012 - 02:30 AM
Yes, of course!
The former binds the current program object (which tells OpenGL HOW to draw stuff) and the latter the current framebuffer object (which tells OpenGL WHERE to draw stuff).
Obviously, the order of the two doesn't matter, as long as you call them both before actually drawing anything.
The former binds the current program object (which tells OpenGL HOW to draw stuff) and the latter the current framebuffer object (which tells OpenGL WHERE to draw stuff).
Obviously, the order of the two doesn't matter, as long as you call them both before actually drawing anything.






