diff options
author | Ian Romanick <[email protected]> | 2012-07-24 20:06:25 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-08-24 09:06:31 -0700 |
commit | 1a200b68cd57e2aee419e45ac8f1ce32e5cf8951 (patch) | |
tree | b1d0efef80678ed04ec92d77db370bc3a099217e /src/mesa/state_tracker/st_draw.h | |
parent | 9282ebbaa5fdb4bc1d6234d746acac525660185d (diff) |
mesa: Filter glGetProgramiv pnames based on available extensions
Previously you could always glGetProgramiv one of the transform feedback
or geometry shader enums even if the extension wasn't supported.
In addtion, this reverts part of bda6ad27. I think the hunks involving
GL_PROGRAM_BINARY_LENGTH_OES were spurious. Mesa has no support for any
other part of GL_OES_get_program_binary.
v2: Remove redundant return in get_programiv based on review feedback
from Matt Turner.
v3: Correctly handle UBO related enums.
v4: Emit the bad enum in the _mesa_error call based on review feedback
from Brian Paul.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_draw.h')
0 files changed, 0 insertions, 0 deletions