On Sat, Jan 9, 2016 at 3:59 AM, Ian Romanick <i...@freedesktop.org> wrote: > From: Ian Romanick <ian.d.roman...@intel.com> > > tl;dr: For many types of GL object, we can *NEVER* use the Gen function. > > In OpenGL ES (all versions!) and OpenGL compatibility profile, > applications don't have to call Gen functions. The GL spec is very > clear about how you can mix-and-match generated names and non-generated > names: you can use any name you want for a particular object type until > you call the Gen function for that object type.
Not that it affects this patch (except perhaps the commit message), but at least in GLES2 you can even keep on using the old buffer, texture, framebuffer or renderbuffer names even after calling the Gen-function, because Gen{Buffers,Textures,Framebuffers,Renderbuffers} are defined as "returns n previously unused {buffer,texture,framebuffer,renderbuffer} object names in textures". Since the object names needs to be previously unused, the Gen-functions cannot generate names that has been previously bound. I expect that the same goes for other specifications, but I haven't verified that. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev