summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-06-10 19:33:01 -0700
committerIan Romanick <[email protected]>2012-08-17 09:14:36 -0700
commit3df13b32e56dbc76bdc72b75ea1462f79b44dce9 (patch)
treec4ce2ab56692a3ce7a349d583389ce2253b96d6d /src/mesa/tnl
parent8c37fc1e9240a323b07c21da83dbd5432fc6895a (diff)
mesa: Support GL_TEXTURE_BUFFER in GetTexLevelParameter[if]v in GL 3.1+.
The OpenGL 3.1 specification explicitly allows this. Oddly, the ARB_texture_buffer_object spec's issues section claims this isn't allowed, but proceeds to explain that the extension simply doesn't edit the underlying spec to allow it, and thus it didn't appear in the list of legal texture targets. Thus, this patch legalizes it only in 3.1+ contexts, but still returns INVALID_ENUM in earlier contexts that expose ARB_texture_buffer_object. Unfortunately, the behavior of the call is horrendously undefined. Fixes oglconform's tbo/negative.textureParams test. v2: Require desktop OpenGL. Signed-off-by: Kenneth Graunke <[email protected]> Signed-off-by: Eric Anholt <[email protected]> Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/tnl')
0 files changed, 0 insertions, 0 deletions