diff options
author | Eric Anholt <[email protected]> | 2012-05-01 14:15:14 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-07-20 10:43:50 -0700 |
commit | 548bce473367a53f45275356f8d5b9e7d98be5ce (patch) | |
tree | 75b5c962f29f6496359171ed9bb6ff61daad196b /src/mesa/main | |
parent | a74507dc94f6383f2a81850866fceec108c2ab34 (diff) |
mesa: Implement the UBO-specific pnames of glGetActiveUniformsiv.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/uniform_query.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index b5499ea3445..816c2779cf3 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -121,12 +121,23 @@ _mesa_GetActiveUniformsiv(GLuint program, break; case GL_UNIFORM_BLOCK_INDEX: + params[i] = uni->block_index; + break; + case GL_UNIFORM_OFFSET: + params[i] = uni->offset; + break; + case GL_UNIFORM_ARRAY_STRIDE: + params[i] = uni->array_stride; + break; + case GL_UNIFORM_MATRIX_STRIDE: + params[i] = uni->matrix_stride; + break; + case GL_UNIFORM_IS_ROW_MAJOR: - _mesa_problem(ctx, "FINISHME: glGetActiveUniformsiv(pname)"); - params[i] = -1; + params[i] = uni->row_major; break; default: |