it’s not quite clear to me if and how pbuffer, render_texture and GL_MIPMAP_GENERATE work together.
if I use for my textures GL_GENERATE_MIPMAP and a pbuffer with render_texture and WGL_MIPMAP_TEXTURE_ARB will there be the mipmaps generated if I bind the pbuffer to the texture with wglBindTexImageARB?
Currently it seems not to, in my application the mipmap is incorrect, some static other view of my scene, I guess its just some garbage which happens to be at the memory where the mipmap should be generated.
Is it possible to use GL_GENERATE_MIPMAP with ARB_render_texture? And if so, what could be wrong if the mipmap isn’t correctly generated…
Originally posted by flamz:
[b]the mipmaps should be generated when the texture is bound.
did you specify WGL_MIPMAP_TEXTURE_ARB as an attribute of your p-buffer and set GENERATE_MIPMAP_SGIS to true with glTexParameter ?[/b]
yes, that’s axactly what I’m doing, but instead of GL_GENERATE_MIPMAP_SGIS I use GL_GENERATE_MIPMAP
before wglBindTexImageARB the mipmap is updated correctly (perhaps with an one frame lag, haven’t tested it).
Is this supposed to be the correct workaround to get the mipmap updated?
I would have thought that this were implicitly done with wglBindTexImageARB, but obviously it’s not…