[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: opengl and textures FIXED
Steve Baker:
> Francesco Orsenigo wrote:
> > A "glGenTextures(GL_TEXTURE_2D, &select_text_id);" call helps too.... =)
>
> Actually, no - it doesn't.
>
> You can pick any handle you like for a texture. The only reason to use
> glGenTexture is to guarantee that your texture handle is unique in a
> situation where maybe you have some other library allocating textures
> and you don't know what handles that library is using.
>
> Same deal with display list handles.
Sure, but since GL_TEXTURE_2D most likely has a value different than 1, a
segmentation fault is assured.
Francesco Orsenigo