Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: glUniformMatrix4fv when is the data copied?

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2010
    Location
    us
    Posts
    12

    glUniformMatrix4fv when is the data copied?

    Does glUniformMatrix4fv instantly copy data pointed to by the passed in pointer? If not when does it make the copy? Would it be the glDrawElements or glDrawArrays call?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,948

    Re: glUniformMatrix4fv when is the data copied?

    The same time as any pointer data you give OpenGL (unless the function explicitly states otherwise): immediately.

    Indeed, the only exceptions are the attribute pointer functions when using client memory. Other than that, every function immediately does its copy when given client memory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •