diff options
author | Ian Romanick <[email protected]> | 2014-06-10 10:41:32 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-06-11 11:26:05 -0700 |
commit | 014d45f137b484e4fc24722e77e4a2a15cc04031 (patch) | |
tree | 30a0ae32f6101fd4a0b4f2df8847c252cce53d02 /src/glsl/ir_uniform.h | |
parent | 0d8944866293c147cb043322cc68e13136278ae5 (diff) |
glsl: Store gl_uniform_driver_storage::format as the actual type
And delete the incorrect comment.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/glsl/ir_uniform.h')
-rw-r--r-- | src/glsl/ir_uniform.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/glsl/ir_uniform.h b/src/glsl/ir_uniform.h index 3508509d4d0..4829eb70292 100644 --- a/src/glsl/ir_uniform.h +++ b/src/glsl/ir_uniform.h @@ -37,7 +37,7 @@ extern "C" { #endif -enum gl_uniform_driver_format { +enum PACKED gl_uniform_driver_format { uniform_native = 0, /**< Store data in the native format. */ uniform_int_float, /**< Store integer data as floats. */ uniform_bool_float, /**< Store boolean data as floats. */ @@ -66,11 +66,8 @@ struct gl_uniform_driver_storage { /** * Base format of the stored data. - * - * This field must have a value from \c GLSL_TYPE_UINT through \c - * GLSL_TYPE_SAMPLER. */ - uint8_t format; + enum gl_uniform_driver_format format; /** * Pointer to the base of the data. |