[Mesa-dev] [PATCH 05/37] mesa: Allow glGet of values that are 2 doubles

Ian Romanick idr at freedesktop.org
Fri Jan 17 17:03:25 PST 2014


From: Courtney Goeltzenleuchter <courtney at LunarG.com>

This will be used when the viewport near and far plane are stored as
doubles instead of as floats.

v4 (idr): Split out from a single megapatch.  Suggested by Ken.  Also
drop value_double_4.  It's never used anywhere in the patch series.

Signed-off-by: Courtney Goeltzenleuchter <courtney at LunarG.com>
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/mesa/main/get.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index dd6ac31..2189b31 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -113,6 +113,7 @@ enum value_type {
    TYPE_FLOATN_3,
    TYPE_FLOATN_4,
    TYPE_DOUBLEN,
+   TYPE_DOUBLEN_2,
    TYPE_MATRIX,
    TYPE_MATRIX_T,
    TYPE_CONST
@@ -162,6 +163,7 @@ struct value_desc {
 union value {
    GLfloat value_float;
    GLfloat value_float_4[4];
+   GLdouble value_double_2[2];
    GLmatrix *value_matrix;
    GLint value_int;
    GLint value_int_4[4];
-- 
1.8.1.4



More information about the mesa-dev mailing list