Comment 6 for bug 358403

Revision history for this message
In , Idr (idr) wrote :

(In reply to comment #2)

> Actually this bug is rather easy to reproduce, any call to glCopyTexImage2D
> will trigger it if the requested texture width exceeds OpenGL window width,
> however any height is ok.
> I have attached a simple test case for this.
>
> In addition, if you allocate memory for the texture with something like this
> before operation:
> glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_BYTE,
> NULL);
> ...glCopyTexImage2D function succeeds.

It sounds like the driver is allocating the texture based on the clipped-to-window size instead of the requested size.