[Mesa-dev] [PATCH 15/18] mesa: Implement the UBO-specific pnames of glGetActiveUniformsiv.
Eric Anholt
eric at anholt.net
Mon Jul 2 17:38:24 PDT 2012
---
src/mesa/main/uniform_query.cpp | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp
index b5499ea..816c277 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:
--
1.7.10
More information about the mesa-dev
mailing list