Dave points out that this is actually illegal. I managed to merge the
addition of GL_STENCIL_INDEX as a valid token to glTexSubImage and the
allowance of this for glGetTexImage as one thing. Test withdrawn. Will
try to submit something which tests that the behavior yields a GL
error.
On Tue, Aug 2
Mesa is not currently checking compatibility of format + internal format
when doing a TexSubImage. This implements these checks by doing a
glTexStorage followed by glTexSubImage. (The dependency on TexStorage
could be avoided, but would require more changes to the test structure.)
Signed-off-by: I